Support » Themes and Templates » Remove "Published in nameofcategory" in posts? (Twentyeleven)

  • Hello,

    So I started to work with WordPress today.
    By just googling I’ve solved everything but one problem.

    When I publish a new post it says “Published in nameofcategory |” and I would like this to be removed.
    I hope you can help me 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael


    Forum Moderator

    edit content.php (if it is not in your child theme, copy it form the parent theme into the child theme and edit it there)

    the code starts at line 46:

    <footer class="entry-meta">
    			<?php $show_sep = false; ?>
    			<?php if ( 'post' == get_post_type() ) : // Hide
    ..'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
    		</footer><!-- #entry-meta -->

    probably totally remove this section.

    make a backup copy of the file before editing.

    there is a similar section in content-single.php if you want to remove it from the single posts as well.

    It worked like a charm, thank you!

    In alternative, edit the child css file adding this line

    .entry-meta {
    	display: none; /* hide meta data from posts */


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove "Published in nameofcategory" in posts? (Twentyeleven)’ is closed to new replies.