Eilonwy926
Member
Posted 9 months 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
imagebox
Member
Posted 9 months 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
imagebox
Member
Posted 9 months 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() ?>
Eilonwy926
Member
Posted 9 months 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?
imagebox
Member
Posted 9 months 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.