Background image opacity
-
Hey everyone,
I've got my code for my background image:
body[data-type="page"][data-id="428"] {
background-image: url();
background-size: cover;
background-attachment: fixed;
}but I am struggling with changing the background image opacity. I would still like to keep the menu/site title/text etc that sits on top of the background unaffected by changing the opacity. Any ideas? :)
-
Hi @fm
if you give the body a background image it will be on the lowest level of your website.
There is nothing which can be under it. So there is no need to change the opacity of the body. It will affect the whole website.Why don't you use the default background image which you can use in the Gridder?
Otherwise I recommend you to use a custom HTML. Create a div box and use custom CSS to give that box a background:
background-box { background-image: url(YOUR IMAGE URL); background-size: cover; positiont: fixed; width: 100vw; height: 100vh; }
I hope I could help!
Best!
Marius
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it