Tagged: x
-
AuthorPosts
-
March 11, 2017 at 10:41 am #1403171
Hello,
I have the site background set to transparent so you can see the patterned background on certain sections of the website. However, because it’s transparent, the blog page shows the transparent background. Link here – http://cfwashco.shamoonadvertising.com/2017/01/11/hello-world/Is there a way to change ONLY the blog page background back to white?
March 11, 2017 at 10:44 am #1403172This reply has been marked as private.March 11, 2017 at 9:21 pm #1403475Hi there,
Thanks for posting in.
Yes, that’s possible. But, is it the blog page or post page? Please add this CSS to Admin > Appearance > Customizer > Custom > CSS
.single-post .x-header-landmark { background: #fff; } .single-post .site > .x-container { background: #fff; position: relative; width: 100%; padding: 0 7%; } .single-post .site > .x-container:before { content: ""; background: #fff; display: block; position: absolute; top: -2.71em; width: 100%; bottom:-2.7em; left: 0; } .single-post .x-colophon.top { padding-top: 0; } .single-post .x-colophon.top:before { content: ""; display: block; width: 100%; height:0; padding-bottom:27%; background: url(https://s3.amazonaws.com/community-themeco/app/uploads/2017/03/11104424/FOOTER_09_WHITE-1.png); background-size: 100% auto; margin-bottom: 2.7em; }
Just change the image URL.
Cheers!
March 13, 2017 at 9:55 am #1404935This reply has been marked as private.March 13, 2017 at 10:32 am #1404987This reply has been marked as private.March 13, 2017 at 1:08 pm #1405186Hi There,
Please find this CSS:
.single-post .site > .x-container:before { content: ""; background: #fff; display: block; position: absolute; top: -2.71em; width: 100%; bottom: -2.7em; left: 0; }
And change to this:
.single-post .site > .x-container:before { content: ""; background: #fff; display: block; position: absolute; top: -2.71em; width: 100%; bottom: -2.7em; left: 0; z-index: -1; }
Hope it helps 🙂
March 13, 2017 at 4:07 pm #1405477This reply has been marked as private.March 14, 2017 at 1:20 am #1405937Hi There,
You can add this under Custom > CSS in the Customizer.
body.blog, .blog .site { background-color: #fff !important; background-image: none; }
Thanks.
March 15, 2017 at 4:13 pm #1408617This reply has been marked as private.March 16, 2017 at 12:12 am #1409132Hello There,
Thanks for updating in! Sorry if it didn’t quite worked out. Please update the custom css and make use of this code instead:
.blog .site { background-color: #fff !important; background-image: none; }
You should have something like this: http://prntscr.com/ekjk97
Please let us know how it goes.
March 16, 2017 at 9:39 am #1409652This reply has been marked as private.March 16, 2017 at 9:40 am #1409655This reply has been marked as private.March 16, 2017 at 4:24 pm #1410178Hi There,
You can update this css block:
.single-post .x-colophon.top:before { content: ""; display: block; width: 100%; height: 0; padding-bottom: 27%; background: url(https://s3.amazonaws.com/community-themeco/app/uploads/2017/03/11104424/FOOTER_09_WHITE-1.png); background-size: 100% auto; margin-bottom: 2.7em; }
To this:
.single-post .x-colophon.top:before, .blog .x-colophon.top:before { content: ""; display: block; width: 100%; height: 0; padding-bottom: 27%; background: url(https://s3.amazonaws.com/community-themeco/app/uploads/2017/03/11104424/FOOTER_09_WHITE-1.png); background-size: 100% auto; margin-bottom: 2.7em; }
However, blog page footer can’t have the transparent background because of the white background we just added on the boxed container.
Thanks.
March 20, 2017 at 9:06 am #1413649This reply has been marked as private.March 20, 2017 at 11:01 pm #1414573Hi There,
If that is the case, then we need make the boxed container to have a transparent background. Please update the code provided above to this:
.blog .site { background-color: transparent !important; background-image: none; }
Then lets apply a white background on the content container and header landmark only, so the footer will remain transparent.
.blog .x-header-landmark, .blog .x-container.offset { background-color: #fff; } .blog .x-container.offset { width: 100%; margin: 0; padding: 2.75em 7%; }
Hope it helps, Cheers!
-
AuthorPosts