Archived topic
Change body background color only on some pages
1 reply · Started by Matteo on January 26, 2019
Viewing posts 1–2 of 2
Just changed the body background color from grey to white to fix some colors' mismatch in my homepage: Customizer->Colors->Body->Background Color.
But the body background color changed for the whole site.
How can I do to change it only for some pages using CSS?
Thanks.
Hi there,
You can use CSS like this:
body.page-id-xxx {
background-color: #000;
}
And just replace xxx with the actual page id.
Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know if this helps :)
This archived topic is closed to new replies.