• Hi,

    I want to hide Tags to display from single posts. I don’t to remove their functionality.
    If i will remove the following code from single.php
    <p class=”post-category”><?php the_category(‘ / ‘); ?></p>

    Will i lose tags function by searching. Please suggest my issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi ankamraja. If you want to hide the tags on the single post view you have a couple of options:
    1. Copy single.php to a child theme and remove the following line:

    <?php the_tags('<p class="post-tags"><span>'.__('Tags:','hueman').'</span> ','','</p>'); ?>

    2. Or, use the following css in a plugin or a child theme style.css file:

    .single-post .post-tags {
      display: none;
    }

    The tags will still be available on your site for searching and to display in other places. Hope that helps.

    Hi i want to hide my page source description and keywords in my Hueman theme?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How To Hide Tags From Posts’ is closed to new replies.