- This topic has 9 replies, 2 voices, and was last updated 1 year, 5 months ago by
David.
-
AuthorPosts
-
December 30, 2020 at 6:46 am #1599411
Enrico
Hello there.
Please, I would like to change the background image (both Body and Container) in some pages/posts.
I have already set up a background image in Appearance > Customize > Background Images > Body (and Content).
How can I do to set up different background image in some specific pages?
Thank you.December 30, 2020 at 8:01 am #1599684David
StaffCustomer SupportHi there,
if you’re adding various colors to various pages then the simplest solution is to install the Simple CSS plugin:
https://en-gb.wordpress.org/plugins/simple-css/
This will provide a Simple CSS meta box in your post/page editor where you can add CSS just for that page. The CSS for each, would be:
body { background-image: url('full-link-to-your-image-here'); }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 30, 2020 at 8:21 am #1599714Enrico
Thank you David.
I already tried in that way, but the background container doesn’t change.
I would like (but maybe isn’t possible) a transparent background container.
Please have a look here.
Maybe I’m asking something stupid, but I’m a beginner…
ThanksDecember 30, 2020 at 8:54 am #1599763David
StaffCustomer SupportIts working – but unless you view it on a really large screen its being hidden by the article container… do you want the image behind the content area?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 30, 2020 at 9:22 am #1599799Enrico
I would like to hide the background of inside-article container.
I know my is not a technical language, I’m sorry.
Please see what I would like to have
December 30, 2020 at 9:31 am #1599814David
StaffCustomer SupportOk so change the CSS to this:
/* add body background */ body { background-image: url('full-link-to-your-image-here'); background-size: cover; } /* Remove background from article content */ .separate-containers #main .inside-article { background-image: none; background-color: transparent; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 30, 2020 at 9:58 am #1599866Enrico
How can I offer you a beer? π
It’s working perfectly!
Grazie!December 30, 2020 at 9:59 am #1599868David
StaffCustomer SupportWe’ll we do accept coffee donations π
https://generatepress.com/ongoing-development/Glad to be of help!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 30, 2020 at 7:34 pm #1600258Enrico
I did π
CiaoDecember 31, 2020 at 4:01 am #1600503David
StaffCustomer SupportThats really kind of you and much appreciated !
Best wishes for the New Year!Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.