- This topic has 6 replies, 4 voices, and was last updated 2 years, 11 months ago by
Peter.
-
AuthorPosts
-
January 13, 2023 at 3:20 am #2494022
Manuela
Hello,
in the example theme the categories are highlighted in colour. Since the categories are displayed in white font, it is also more pleasant for the readers if they are highlighted in colour.
How do I get one colour per category?
Thanks for the support. 😀 Manuela
January 13, 2023 at 6:14 am #2494163David
StaffCustomer SupportHi there,
the demo uses some custom CSS to styles its terms, which unfortunately requires a little bit of work to change over.
if you’re happy to walk through with me, ill tell you how to change it.1. Go to Customizer > Additional CSS and delete the Following code:
body:not(.single):not(.blog):not(.search-results) .post-term-item { padding: 5px 10px; } body.blog .post-term-item, body.search-results .post-term-item { padding: 10px 20px; } body:not(.single):not(.blog):not(.search-results) .post-term-item { border-radius: 3px; } body:not(.single) .post-term-item.term-business { background-color: var(--business); } body:not(.single) .post-term-item.term-community { background-color: var(--community); } body:not(.single) .post-term-item.term-education { background-color: var(--education); } body:not(.single) .post-term-item.term-entertainment { background-color: var(--entertainment); } body:not(.single) .post-term-item.term-lifestyle { background-color: var(--lifestyle); } body:not(.single) .post-term-item.term-technology { background-color: var(--technology); } body:not(.single) .post-term-item.term-travel { background-color: var(--travel); }2. Go to Customizer > Colors and add a New Global Color and call it:
term-colorand set the default color you would like.3. In Customizer > Additional CSS add this CSS:
body:not(.single) .post-term-item { background-color: var(--term-color); }If that works then all the terms should now be your new term color ?
If so, let me know and we can do the color swapping bit 🙂January 13, 2023 at 6:54 am #2494209Manuela
Hello David
Again I have learned something new.
Thank you, your answer helped me.
I just changed the category labels in the code and put a matching colour as a term.
Voila, it worked. Thank you.😀
January 13, 2023 at 7:13 am #2494231David
StaffCustomer SupportGlad to hear that!!
March 31, 2023 at 6:55 am #2590583Peter
Hi
If I ad a new category and put it in the menu, how do I give it a background color og ny choice?March 31, 2023 at 10:33 am #2591021Ying
StaffCustomer SupportHi Peter,
Can you open a new topic and link us to your site?
Please point out which menu item you were referring to as well.
Let me know!
March 31, 2023 at 10:46 am #2591035Peter
Yes, I’ll do that.
-
AuthorPosts
- You must be logged in to reply to this topic.