Forums

How can I hide the post tags? (4 posts)

  1. tudorc11
    Member
    Posted 1 year ago #

    Hi, I have WordPress-based website (http://bit.ly/dd5FKh).

    I am currently satisfied with my theme, but I would like to someway hide the post tags that are displayed after the posts. I have seen lots of WP blogs that didn't showed any tags.

    Is there any way to hide the tags, without receiving any penalty from the search engines?

  2. Lou Sparx
    Member
    Posted 1 year ago #

    Can you remove the tag id from either single.php or index.php?

  3. tudorc11
    Member
    Posted 1 year ago #

    <?php
              $posttags = get_the_tags();
              if ($posttags) { ?>
              <p class="tags"><?php the_tags(''); ?></p>
              <div class="clear"></div>
              <?php } ?>

    This is the part of code from single.php that I think it's causing the tags to be displayed. My question would now be: if I remove this, will the search engines still find out the post tags?

  4. Digital Raindrops
    Member
    Posted 1 year ago #

    Try the easy way to hide the class, no code hacking :)

    open style.css and add at the bottom

    .tags
    {
       display: none;
    }

    I use this for the blog title / description, so the search engines still pick it up, try it and use firebug to have a look.

    HTH

    David

Topic Closed

This topic has been closed to new replies.

About this Topic