Support » Themes and Templates » Remove tag label

  • Hi,

    My website: http://d-eye.be
    I’m using the iNove theme.

    Question: I’m not using tags but the tag icon appears and I’d like to hide it when not using tags.

    In single.php there’s this line:

    <?php if ($options[‘tags’]) : ?><span class=”tags”><?php the_tags(”, ‘, ‘, ”); ?></span><?php endif; ?>

    This seems correct.

    Anyone who knows how to solve this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • It’s added from CSS. Look in your style.css and remove the background: url(…) line

    Justin Tadlock

    (@greenshady)

    WordPress God

    Don’t remove anything from your style.css file. That’ll remove the icon when tags are displayed.

    The problem is the theme doesn’t properly add the <span class="tags"> here, which causes it to always show, even when no tags are present.

    Change it to this instead:

    <?php if($options['tags']) the_tags('<span class="tags">', ', ', '</span>'); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove tag label’ is closed to new replies.