Support » Theme: Twenty Twelve » On the blog homepage, how do I remove the AUTHOR from the H2 tags?

  • Resolved ronpark


    Hello all,

    I have had a helluva time trying to find the H2 tag code that pulls up on the homepage of the site that I am optimizing.

    I am guessing that the H2 code of the DATE + AUTHOR is hard-coded somewhere where I’m not looking.

    Would someone please lend a hand on where I can find the code that pulls up the H2 tag? I would like to keep the calendar date, only want to remove the author.

    Thank you for your help in advance.


Viewing 4 replies - 1 through 4 (of 4 total)
  • Is the solution within the functions.php file?

    I was able to erase the Author from the homepage by erasing some lines, but it would be

    April 3, 2013 by

    I don’t know where I have to go to delete that ” by”

    Your help will mean a lot. Thank you.

    The easiest way to do that is by hiding it using this CSS:

    .by-author {
       display: none;

    I would not recommend modifying theme files in the default theme.

    Thank you so much. It worked perfectly!!!

    it is better not to use CSS to hide something ;=)

    the complete info is printed by
    <?php twentytwelve_entry_meta(); ?> in your template, f.e. content.php

    and it is defined in the functions.php of your child-theme:

    // Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.
    	if ( $tag_list ) {
    		$utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
    	} elseif ( $categories_list ) {
    		$utility_text = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
    	} else {
    		$utility_text = __( 'This entry was posted on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );

    so you can define what you want to see in the

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘On the blog homepage, how do I remove the AUTHOR from the H2 tags?’ is closed to new replies.