How to add <span> into wp_list_categories() variable?
-
When using the wp_list_categories() variable (usage: http://codex.wordpress.org/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:
What I need now, is to figure out how to add “<span>” into the mix, IN the tag, so it becomes:
I cannot for the life of me figure out how to do this. All help will be GREATLY appreciated!
Thanks in advance./Anthony
-
Afraid you are in the wrong forum and we won’t be able to help you. Please read this:
https://en.forums.wordpress.com/topic/please-read-me-first-before-posting?replies=1
-
Let me clarify the HTML I want:
<ul>
<li><a href=""><span>Category 1</span></a></li>
<li><a href=""><span>Category 2</span></a></li>
<li><a href=""><span>Category 3</span></a></li>
</ul> -
Afraid you are in the wrong forum and we won’t be able to help you. Please read this:
https://en.forums.wordpress.com/topic/please-read-me-first-before-posting?replies=1
-
raincoaster, please accept my apologies. I’m usually more aware of things like this. My bad
-
-
- The topic ‘How to add <span> into wp_list_categories() variable?’ is closed to new replies.