project overlay to cover menu
-
.lay-project-overlay{ z-index: 20!important; }
Enter this css in "lay options" -> "custom css & html" -> "custom css for desktop"
try this!
NOTE:
this is the correct css not the one above#lay-project-overlay{ z-index: 20!important; }
-
Hi @arminunruh, I'm trying to achieve this as well.
The above doesn't seem to work, no matter what i put for the z-index of the .laynav elements and the .lay-project-overlay elements, the nav is always visible above the overlay...What could i be missing?
-
#lay-project-overlay{ z-index: 20!important; }
i made a mistake, this should be the correct css!
-
Hi @arminunruh, thanks, it works on desktop but not on mobile, could you please help me?
-
Okay. Well, then, if you want it for mobile, you have to not just enter it in custom CSS for desktop but also in custom CSS for mobile.
.close-projects-overlay{ z-index: 90!important; } #lay-project-overlay{ z-index: 89!important; }
-
Thanks — of course I had already tried that, as well as testing it in custom code before posting. However, since the preview in 'Customize' didn’t reflect that code, I thought it wasn’t working. But after testing it across several browsers, it turns out it does!
-
Oh don't worry about it. For mobile, it was a little different. We had to use a higher z-index and also use a z-index on the close icon, so it's understandable that it seems like it doesn't work at first.
-
Hi, I have this project page with an overlay: https://www.softlaunch.live/puma-copy-3/
I added the css code below, so the overlay covers the site title and menu. When I reload the project page, the close button is not visible anymore and the site title + the navigation is visible again.
How can I maintain the cover of the overlay?
: #lay-project-overlay{
z-index: 20!important;
} -
hey you cant, reloading a project will just show it without it being an overlay.
:/ -
mmh somehow on your page the first image does not load.
https://www.softlaunch.live/puma-copy-3/can you go to lay options -> and disable this:
lazyloading
I also code custom websites or custom Lay features.
💿 Email me here: 💿
info@laytheme.com
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