- This topic has 13 replies, 3 voices, and was last updated 3 years, 3 months ago by
Fernando.
-
AuthorPosts
-
December 24, 2022 at 8:49 pm #2472676
nomadiceman
Is there a way to have different colour backgrounds for the different category links that are above each image for the post.
You can see on the home page of the Scribe template https://gpsites.co/scribe/
You can see the category links background above each post is a purple, how can I make each category have a different background colour?
Previously I managed to do this using this CSS:
.cat-links a[href*="/mycategory"] { background-color: #43AA8B; }Thanks guys for your help
December 25, 2022 at 8:09 pm #2473246Fernando Customer Support
Hi Nomadice,
Can you try adding this through Appearance > Customize > Additional CSS?:
.home article .gb-button-wrapper .gb-button.term-business { background-color: #ff0000; }Replace
businesswith the term slug, and the color value with your preferred color.December 25, 2022 at 8:20 pm #2473252nomadiceman
Thank you. Can you explain what you mean by:
“Replace business with the term slug, and the color value with your preferred color.”
Not sure I understand correctly 🙏
December 25, 2022 at 8:35 pm #2473258Fernando Customer Support
In the code above, replace business with whatever the category term slug is. Example: https://share.getcloudapp.com/7Kujox7b
Replace #ff0000 with the color value you wish to use. Example: #43AA8B
December 25, 2022 at 8:39 pm #2473265nomadiceman
I understand thank you 🙏
December 25, 2022 at 9:16 pm #2473285Fernando Customer Support
You’re welcome!
December 30, 2022 at 7:34 pm #2478493nomadiceman
Hi, this works great on teh home page, but not on the author archives.
What code do I need to use to make this work on the author archive pages?
Thank you so much
December 31, 2022 at 5:09 am #2478740David
StaffCustomer SupportHi there,
remove the
.homeclass from the selector eg.article .gb-button-wrapper .gb-button.term-business { background-color: #ff0000; }Then that will apply wherever there is a linked term being displayed by a GB Button.
December 31, 2022 at 6:50 pm #2479267nomadiceman
Oh yeah, seems obvious now.
Thank you very much for your help
Happy New Year 🥳
January 1, 2023 at 6:36 am #2479551David
StaffCustomer SupportHappy New Year!
Glad to be of helpJanuary 2, 2023 at 4:14 pm #2481290nomadiceman
Hi guys.
It seems now that it stops working when you’ve previously visited that category. The button stays as blue. See attached link to my site
How can I stop that?
Thank you so much
January 2, 2023 at 5:37 pm #2481328Fernando Customer Support
I see. Can you try this syntax to stop that?:
article .gb-button-wrapper .gb-button.term-insights:is(:visited, :link) { background-color: #ff0000; }Replace
term-insightswith your preferred term.January 2, 2023 at 5:54 pm #2481334nomadiceman
thank you, worked perfect 🙏
January 2, 2023 at 5:57 pm #2481335Fernando Customer Support
You’re welcome! 🙏
-
AuthorPosts
- You must be logged in to reply to this topic.