- This topic has 9 replies, 2 voices, and was last updated 7 years, 2 months ago by
Leo.
-
AuthorPosts
-
January 24, 2019 at 12:22 pm #791367
Diego Fernando
Hi.
I am currently using the background module. I was wondering if it is possible, as if it happens in the header module, if I can use an overlay color with background, which would be on the content.
Thanks
January 24, 2019 at 1:07 pm #791390Leo
StaffCustomer SupportHi there,
We would have to use CSS for that.
Which page are you referring to? Not seeing background image on the home page.
Let me know 🙂
January 26, 2019 at 6:27 am #792725Diego Fernando
Hello Leo.
I was considering the option but I did not find it, so in the end I did not fix the background.
If you have the css, I would like to have both options, how would it be for the all web? How would it be for specific web pages?
A greeting.
January 26, 2019 at 10:24 am #793016Leo
StaffCustomer SupportWhich background are you referring to?
The body background?
Can you apply it so I can just give you the full code?
January 27, 2019 at 7:08 pm #793990Diego Fernando
Hello Leo. Yes, I’m referring to body background.
Please look the website, I’ve changed it. I want body background with an overlay color.
Thanks.
January 27, 2019 at 7:25 pm #794002Leo
StaffCustomer SupportTry this CSS:
body { background-image: linear-gradient(0deg,rgba(36,55,67,.76),rgba(36,55,67,.76)),url(https://cdn.shortpixel.ai/client/q_glossy,ret_img/http://www.historiadeloscomics.com/wp-content/uploads/2019/01/marvel-1641554_1920.jpg); }Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know 🙂
January 28, 2019 at 5:24 am #794313Diego Fernando
Hello Leo. Thanks, that’s I wanted.
Leo, is there a possibility that this will NOT apply to specific pages?
Maybe have the space to place the page-id where I do not want to have that change.
January 28, 2019 at 9:09 am #794648Leo
StaffCustomer SupportYou can use the
:notselector like this:body:not(.page-id-123):not(.page-id-456) { background-image: linear-gradient(0deg,rgba(36,55,67,.76),rgba(36,55,67,.76)),url(https://cdn.shortpixel.ai/client/q_glossy,ret_img/http://www.historiadeloscomics.com/wp-content/uploads/2019/01/marvel-1641554_1920.jpg); }Just replace the
123and456with the actual page ID that you would like to replace.The other method would be to target specific page that you do want the background image/overlay:
body.page-id-123 ,body.page-id-456 { background-image: linear-gradient(0deg,rgba(36,55,67,.76),rgba(36,55,67,.76)),url(https://cdn.shortpixel.ai/client/q_glossy,ret_img/http://www.historiadeloscomics.com/wp-content/uploads/2019/01/marvel-1641554_1920.jpg); }January 28, 2019 at 3:25 pm #794936Diego Fernando
Thank you Leo.
I can do it with your help.
January 28, 2019 at 7:02 pm #795033Leo
StaffCustomer SupportNo problem 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.