WordPress.org

Ready to get started?Download WordPress

Forums

remove categories, tags and author information in front page (4 posts)

  1. superdani1982
    Member
    Posted 4 years ago #

    Hello,

    I would like to remove the categories, tags and author information in my front/main page, but keep it in the posts. I use the "Homepage Excerpts" plugin to not show the whole posts in the main page, so the categories,tags and author don´t look nice there.

    My website is: http://www.zaichina.net.

    All I would like to remove in the front page is:

    Posted in China, Medios.

    Tagged with curiosidades, educación, encuesta, fútbol, ideas.

    By ZaiChina

    Thank you so much for your time,

    Daniel.

  2. MichaelH
    Member
    Posted 4 years ago #

    In the wp-content/themes/carrington-blog/content/content-default.php you will want to delete code similar to this:

    <p class="filed categories alt-font tight"><?php printf(__('Posted in %s.', 'carrington-blog'), get_the_category_list(', ')); ?></p>
    	<?php the_tags(__('<p class="filed tags alt-font tight">Tagged with ', 'carrington-blog'), ', ', '.</p>'); ?>
    <p class="by-line">
    		<span class="author vcard full-author">
    			<?php printf(__('<span class="by alt-font">By</span> %s', 'carrington-blog'), '<a class="url fn" href="'.get_author_link(false, get_the_author_ID(), $authordata->user_nicename).'" title="View all posts by ' . attribute_escape($authordata->display_name) . '">'.get_the_author().'</a>') ?>
    		</span>
  3. superdani1982
    Member
    Posted 4 years ago #

    Thank you, Michael.

    The thing is, if I do that, that info won´t appear in the single post entry. It removes the category/tag/author information in all the blog posts... Is there anyway I can keep that info in a single post entry (for example, here: http://www.zaichina.net/2010/03/11/educacion-o-futbol-%c2%bfque-mejorara-antes/) but remove it in the front page (zaichina.net)??

    Thank you very much,

    Daniel.

  4. MichaelH
    Member
    Posted 4 years ago #

    Use Conditional Tags such as is_single() or !is_single() <--is not single.

Topic Closed

This topic has been closed to new replies.

About this Topic