- This topic has 2 replies, 2 voices, and was last updated 7 years, 6 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
So, I have some problem with how to make the different color on categories.
You can look at my design here.
So far I only can make just one color like magazine pro did it.
I want to make the different color automatically rather than change it manually via category ID + CSS.
Any references are welcome 🙂
Thanks for your help.
We would have to look at the site so please post a link.
If you don't want to create CSS for each category ID in style.css, then the alternative is to apply styles dynamically at run time using jQuery. This still requires identifying the element in the DOM by element type, class, name, or ID and mapping the element to a specific color. So it's essentially the same as creating individual styles.
There is one more alternative, but it requires some advanced programming. You could add a custom field to the category page to hold a color value, then display that color value at run time.
© 2023 WPEngine, Inc.