I am using wp_tag_cloud but my problem is the inline CSS (for the font-size). I am doing RWD so I need full control of my markup/css.
As I saw there is no property that will make it go away, so I guess I need to use another function, or the format=array. I tried using the array format but I couldn’t make the tags appear. (not a php guy).
Also please note tags need to be enclosed in elements, so no plaintext..
What are my solutions? Can I use wp_list_categories somehow?
Thank you
Add a filter for the tag cloud in your
functions.php
:In your template you call the tag cloud like this:
Now all inline styles are converted to CSS classes.
Before:
After:
In your style sheet you format the tags with:
Thank you everyone for the answers, I actually found the solution. I used wp_list_categories and declared as taxonomy the tags. I wanted a simple ul list with no inline css involved..