- This topic has 18 replies, 2 voices, and was last updated 3 years, 9 months ago by David.
-
AuthorPosts
-
December 21, 2016 at 7:44 am #256751stlayman
I have GP premium and am having trouble with changing the background color of the blog pages, archive pages, content only to a white background. My site is using a different background color that’s showing through instead. I’ve tried the CSS mentioned in other forum articles, but it’s not working.
December 21, 2016 at 8:25 am #256763Roberto EnriqueWhat exactly you want to change? The body background or the content background?
You should be able to do that using the included options in the customizer.
If instead you need to have different background for your blog, archives, pages, ecc independently you should use custom css.
For doing so i suggest you to use this plugin:
https://wordpress.org/plugins/simple-css/Don hesitate to post here if you need further assistance π
December 21, 2016 at 8:34 am #256769stlaymanThe content only blocks for the blog templates. I already have a body background color set globally in the customizer and am using a child theme for CSS. So, the body bg color is just showing through the content. Thanks.
December 21, 2016 at 8:44 am #256771Roberto EnriqueYou should be able to target blog (archives) pages using something like:
body.blog { background: #000; }
Remember that wordpress adds custom classes to your body element for every page/content/archive in yuor website. You can target almost everything with that π
Can you share your live website link?
December 21, 2016 at 8:54 am #256772stlaymanOk, it’s the blog articles actual posts content here: http://www.americansleepmedicine.org/bedroom-settings-for-quality-sleep/ I already created the main blog page how I’d like it to be.
Thanks again.December 21, 2016 at 8:56 am #256773stlaymanI wouldn’t want to have to target each individual blog article page… trying to make it easier than that for my client.
December 21, 2016 at 10:21 am #256808TomLead DeveloperLead DeveloperIf you’re wanting to apply a background color to the content of single blog posts, you could try this:
.single.separate-containers .inside-article { background: #FFF; }
December 21, 2016 at 10:35 am #256824stlaymanPerfect! Except how would I add the ‘categories’ and ‘archive pages’ too?
December 21, 2016 at 10:37 am #256825TomLead DeveloperLead DeveloperLike this:
.single.separate-containers .inside-article, .category.separate-containers .inside-article, .archive.separate-containers .inside-article { }
December 21, 2016 at 10:41 am #256827stlaymanGreat, thanks so much – have been going around and around on this π
December 21, 2016 at 10:42 am #256828TomLead DeveloperLead DeveloperGlad we could help π
July 22, 2020 at 1:26 am #1371794KrisWhat is the CSS for having white BG on the blog page
http://staging.beaumontcare.com.au/news/
and
Individual posts
http://staging.beaumontcare.com.au/wamuran-aged-care-home-officially-opened/July 22, 2020 at 2:55 am #1371861DavidStaffCustomer SupportHi there,
try this CSS:
body.blog, body.blog .container, body.single-post, body.single-post .container { background-color: #fff; }
July 22, 2020 at 6:35 pm #1372824KrisWorks like a charm, David! Thanks! http://staging.beaumontcare.com.au/news/
What about putting 1 pixel grey horizontal line below the navbar? Or a bit more space between the nav menu and the posts? It looks a bit cramped. /KrisJuly 23, 2020 at 12:46 am #1373028DavidStaffCustomer SupportI would suggest increasing the Top padding in your Customizer > Layout > Container.
This will push the content away from the nav.IF you want to add a border below the nav you can add this CSS:
.site-header { border-bottom: 1px solid #ccc; }
-
AuthorPosts
- You must be logged in to reply to this topic.