Archived topic
content background color
5 replies · Started by sdanbu on September 10, 2017
I know there are global settings to change content background color in the "customize" options.
Is there a CSS to change content background color in pages individually?
If you use Tom's Simple CSS plugin: https://docs.generatepress.com/article/adding-css/#simple-css
It gives you a CSS metabox on each page, then you can use this CSS:
.site-content .inside-article {
background-color: #898989;
}
This helps the inside of the content to have a certain color but it doesn't make the whole page a certain color.
I don't know which part of the screen is named what.
Is there a way to change the color of the whole page to a certain color?
I don't know the names of the different parts of a page even though I'd like to be more specific.
Hmm try:
body {
background-color: #898989;
}
If this doesn't work can you link me to a page?
Hi,
I need to change background color of some pages/posts, wichs the best option to change it?
Is only apply css for example:
.page-id-2 body {
background-color: #898989;
}
.page-id-3 body {
background-color: #fff;
}
Are there better way??
Hi there,
if you use the Simple CSS plugin you can add CSS directly in the Post editor specifically for that post or page:
https://wordpress.org/plugins/simple-css/
Then its just a case of adding:
body {
background-color: #898989;
}
Or whatever color you need to each page - no page-id-X required