Quantcast
Channel: Tishonator
Viewing all articles
Browse latest Browse all 293

Hide Categories and Tags in Single Post Pages

$
0
0

In some cases you may want to hide Categories and Tags in single post pages, but keep them in posts listing. It will require a small code change. Here are all of the necessary steps:

  1. Login to your Admin Panel
  2. Navigate to Left Menu -> Appearance -> Editor
  3. Open yourtheme/content.php
  4. Find <?php if ( has_category() ) : ?>
    and Replace it with:
    <?php if ( has_category() && !is_single() ) : ?>
  5. Find <?php if ( has_tag() ) : ?>
    and Replace it with:
    <?php if ( has_tag() && !is_single() ) : ?>
  6. Save Changes

 


Viewing all articles
Browse latest Browse all 293

Trending Articles