Add class to custom category
-
Hello,
I am calling custom categories in dynamic field in the divi theme builder for showing my custom post item. I really would like to be able to add a specific class to each categorie so I could add some icons. (ex Vegetable / Weather-element)
I am able to add the category name/slug to body class, but not enough for my needs. Is there a way to add an html value or a class ? someting like instead of returning just the name, returning <span class=”custom category slug”>custom category name etc ?
Is it possible with the extended version ?
Any help would be greatly appreciated, thank you really much.The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add class to custom category’ is closed to new replies.