Rounded corners for tag cloud links
-
I’ve been using the wp_tag_cloud function and am trying to edit the CSS for tag links in a tag cloud. I’d like each tag link to appear like a button, so with the same font size regardless of how much the tag is used, a background colour, and rounded corners. Something like this or this.
The problem I’m having is that I can’t figure out the CSS class for tag links as a whole, only for each specific tag e.g. .tag-link-7.
I don’t want to have to edit the CSS for each specific tag every time it’s used. Is there a way to make a tag cloud with a class that edits all tag links at the same time?
I do not want to use a plugin, since I am concerned about increasing the website’s loading time and putting off readers.
I’m afraid I can’t upload a link to my website, since I’m working on a localhost at the moment. If anyone has does anything similar with tag clouds though examples of code that I can play around with would be really useful.
Thanks!
- The topic ‘Rounded corners for tag cloud links’ is closed to new replies.