How to modify the tags & categories styling
-
In Bushwick, at the bottom of a post, the categories & tags which are linked to the post are displayed. Currently, they are shown as a definition list (DL). What’s more, the tags and categories lists are both nested within a single DL-tag.
What I would like to do is 1 of 2 things. I would like to either output both lists as separate ULs. Or I would like to output both lists, but put each list (either the categories, or the tags) in a separate DL.
Both options will make it much easier for me to style the tags and categories lists in the way I want to. Among others, it will make it easier for me to display the tags & cats horizontally (or side-by-side) instead of the current vertical layout (which is the default for a DL).
However, I cannot find out how to do/change this.I looked at “content-single.php”, as this is where the 2 lists seem to be generated.
I changed both calls for the cats & tags to calls without parameters. According to the WordPress reference, this should result in 2 ULs being output. Which is sort of what happens, but these lists are still nested in DL and DD tags. Which is not what I want!
I CAN of course add PHP code to strip the DL-formatting from the output and then add the tags that I want. But that to me seems like a very ‘dirty’ way of getting to what I want: I cannot imagine that there is not an easier or cleaner way to do this…!
- The topic ‘How to modify the tags & categories styling’ is closed to new replies.