How to add <span> into wp_list_categories() variable?
-
When using the wp_list_categories() variable (usage: https://codex.www.ads-software.com/Template_Tags/the_category) it displays the categories in your blog.
I have, however, in the mean time stripped the “title”, which by default is “Categories:”, so that it now displays the following HTML:
<ul> <li><a href="">Category 1</a></li> <li><a href="">Category 2</a></li> <li><a href="">Category 2</a></li> </ul>
What I need now, is to figure out how to add “<span>” into the mix, IN the tag, so it becomes:
<ul> <li><a href=""><span>Category 1</span></a></li> <li><a href=""><span>Category 2</span></a></li> <li><a href=""><span>Category 2</span></a></li> </ul>
I cannot for the life of me figure out how to do this. All help will be GREATLY appreciated!
Thanks in advance./Anthony
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to add <span> into wp_list_categories() variable?’ is closed to new replies.