WordPress.org

Ready to get started?Download WordPress

Forums

using tag icons instead of tag text (5 posts)

  1. Eilonwy926
    Member
    Posted 2 years ago #

    I'm looking for a way to display icons instead of textual tags.

    I found this thread from a year ago that provides some code and instructions, but it doesn't specify where the code should be added:
    http://wordpress.org/support/topic/show-tag-icons-instead-of-tag-text

    I'm using a child theme; should I make the changes here, or to the parent theme, and in which file?

    Any tips appreciated!
    http://www.foryourwordification.com

  2. imagebox
    Member
    Posted 2 years ago #

    It depends on the theme you are using. However you will generally find some code in your index.php file which says:

    <?php the_tags() ?>

    Essentially you need to locate where in your template file that its echoing out the text tags and replace it with the code you found on: http://wordpress.org/support/topic/show-tag-icons-instead-of-tag-text

  3. imagebox
    Member
    Posted 2 years ago #

    You may want to also look in your theme folder to see if there is a content.php file which may also display show

    <?php the_tags() ?>

  4. Eilonwy926
    Member
    Posted 2 years ago #

    where in your template file that its echoing out the text tags

    I don't know PHP enough to understand that, but do you mean I need to find
    <?php the_tags() ?>
    wherever it is, and replace it with the code from that other thread?

  5. imagebox
    Member
    Posted 2 years ago #

    Yes. Essentially in one of your template files you should see the_tags() Note: there maybe some other code within the ( ), but you are looking for the_tags('possibly some code')

    Just replace the_tags() with that code and it should work.

Topic Closed

This topic has been closed to new replies.

About this Topic