BuilderChild-Expansion

From IThemes Codex
Revision as of 03:34, December 18, 2011 by Sridhar (Talk | contribs)
Jump to: navigation, search

Expansion live demo

Expansion Red live demo

Contents

How to remove "by <author>" below post titles

Before
After

1. Edit child theme's index.php and archive.php.

Change

<?php printf( __( 'by %s', 'it-l10n-BuilderChild-Expansion-Red' ), '<span class="author">' . builder_get_author_link() . '</span>' ); ?>
								<?php do_action( 'builder_comments_popup_link', '<span class="comments">· ', '</span>', __( 'Comments %s', 'it-l10n-BuilderChild-Expansion-Red' ), __( '(0)', 'it-l10n-BuilderChild-Expansion-Red' ), __( '(1)', 'it-l10n-BuilderChild-Expansion-Red' ), __( '(%)', 'it-l10n-BuilderChild-Expansion-Red' ) ); ?>

to

<?php //printf( __( 'by %s', 'it-l10n-BuilderChild-Expansion-Red' ), '<span class="author">' . builder_get_author_link() . '</span>' ); ?>
								<?php do_action( 'builder_comments_popup_link', '<span class="comments"> ', '</span>', __( 'Comments %s', 'it-l10n-BuilderChild-Expansion-Red' ), __( '(0)', 'it-l10n-BuilderChild-Expansion-Red' ), __( '(1)', 'it-l10n-BuilderChild-Expansion-Red' ), __( '(%)', 'it-l10n-BuilderChild-Expansion-Red' ) ); ?>

2. Add the following at the end of child theme's style.css (to take care of this in single posts):

.single-post .hentry .author {
    display: none;
}

Item 2

Item 3

Item 4

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox