Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Themonic

    (@themonic)

    <?php if(!is_home()) { ?>
    <span><?php the_tags(); ?></span>
    <?php } ?>

    Try like the above.

    Thread Starter henriklarsen

    (@henriklarsen)

    Thanks, but it does not really do the trick…

    Any other ideas?

    Theme Author Themonic

    (@themonic)

    Code is correct and working. Copy the above and replace from line 65.

    After saving, empty browser and plugin cache to see the changes.

    Thread Starter henriklarsen

    (@henriklarsen)

    Thanks again!

    I am slowly getting it, and write this so others can use it – hope you will confirm my below instructions.

    I find that if I want to keep the categories on the front page, and only remove the tags, while keeping both tags and categories in the posts, then I just remove the following part (in content.php – line 65)

    <span><?php the_tags(); ?></span>

    and immediately after, add these three lines

    <?php if(!is_home()) { ?>
    <span><?php the_tags(); ?></span>
    <?php } ?>

    Themonic, may I trouble you to confirm, that this is as you intended?

    Br,
    Henrik

    Theme Author Themonic

    (@themonic)

    Yes, the above is correct.

    The changes are visible on your site now. If not, then check after clearing all caches or in a different browser/computer.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Removing tags on home page only’ is closed to new replies.