BuilderChild-Expansion

(Difference between revisions)
Jump to: navigation, search
(Added = How to remove "by <author>" below post titles =)
 
m
Line 1: Line 1:
[http://demos.ithemes.com/expansion/ Expansion Live Demo]
+
[http://demos.ithemes.com/expansion/ Expansion live demo]
  
[http://demos.ithemes.com/expansion-red/ Expansion Red Live Demo]
+
[http://demos.ithemes.com/expansion-red/ Expansion Red live demo]
  
 
= How to remove "by <author>" below post titles =
 
= How to remove "by <author>" below post titles =

Revision as of 03:34, December 18, 2011

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