Site logo

Archived topic

Site library: Newsroom, category pages, category background

3 replies · Started by Peter on March 31, 2023

Viewing posts 1–4 of 4

I'm using the Newsroom from the site library, and I want to ad my own categories. The categories have a colored background, but my own categories has no background. How do I set a background color?

The site is itrafikken.dk, and an example is https://itrafikken.dk/category/fart-og-vanvid/ - "Fart og vanvid" needs a background color.

Hi Peter,

1. Go to customizer > colors, add a new color by click the + butotn., and name it eg. fart-og-vanvid.

2. Go to customizer > additional CSS, and add this CSS:

body:not(.single) .post-term-item.term-fart-og-vanvid {
	background-color: var(--fart-og-vanvid);
}

Repeat the 2 steps if you need to set up for more categories, just need to replace the fart-og-vanvid with other category slugs.

Thanks for helping out.

No Problem, glad to help :)

This archived topic is closed to new replies.