WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Swazer
    Member
    Posted 3 years ago #

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

    http://www.mejjan.com

  2. alchymyth
    Forum Moderator
    Posted 3 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
    Member
    Posted 3 years ago #

    It worked like a charm, thank you!

  4. alby54
    Member
    Posted 2 years ago #

    In alternative, edit the child css file adding this line

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

    Alberto

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.