Trying to show category title not in an li
-
OK, so I am using this tag:
<?php wp_list_categories(‘title_li=<h2>Categories</h2>’ ); ?>
to display a list of categories in my sidebar. I do not want the category title to be in an
- , I just want it to be <h2>. Is there anyway I can do that?
If I can’t do that, how do I style the Category title (within the li)? I don’t think li h2 will work in the css.
My widgets are working fine (I have a dynamic sidebar) but my default elements are giving me trouble. Is there any way I can get the default elements to act as widgets, where the titles are given <h2>s before and after?
It’s just confusing to me. Why use the first list item as the title of a list? And having a heading in an li is odd and I don’t even know if you can style that.
Any help appreciated.
- The topic ‘Trying to show category title not in an li’ is closed to new replies.