Site logo

Archived topic

pages and posts background color

5 replies · Started by Nikos on February 18, 2021

Viewing posts 1–6 of 6

hi,
i would like to change colors on specific pages or posts.
for example the default is white and the letters black.
i would like to make it blue with white letters. but its page to have its own color
at the link i provide, you can see what i have done with elementor. but not all the page is the same color.
and could i do this to posts?
as always, just using generatepress products: gp premium, gpblocks pro, and wpshowposts pro.
thank you

Hi Niko,

For style specific for some pages or posts, you could use CSS to target the post first by starting with its post ID or page ID, in this case it's .page-id-18:

.page-id-18 p, .page-id-18 h1, .page-id-18 li, .page-id-18 a {
    color: #fff;
}

You can find it easily by using chrome developer tool:
https://www.screencast.com/t/Yinw07oPdVm4

hi Ying !!!
we got almost there :)
i created a new page, i changed your code a little bit searching in forums,
.page-id-1359 p, .page-id-1359 h1, .page-id-1359 li, .page-id-1359 a {
color: #fff; background-color: #FB8D08;
}
and i get the result that you see at the link.
but i would like everything to be orange at the background :) not with white ... remainings :)
except the grey area at the left and right of course (i don't know the term in english)
how could i do that?
thank you !!!

Try this instead :)

.page-id-1359 .site {
    color: #fff;
    background-color: #FB8D08;
}

perfect !! this is exactly what i wanted :)
thank you very much !!!!

You are welcome :)

This archived topic is closed to new replies.