Remove "Published in nameofcategory" in posts? (Twentyeleven) (4 posts)

  1. Swazer
    Posted 5 years ago #


    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 :)


  2. Michael
    Forum Moderator
    Posted 5 years ago #

    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.

  3. Swazer
    Posted 5 years ago #

    It worked like a charm, thank you!

  4. alby54
    Posted 4 years ago #

    In alternative, edit the child css file adding this line

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


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.