Row image background in lighbox
-
Hi there,
At the top of the page I have a full-screen image (set as row image background), and the rest of the images are standard. Currently the row image background is not part of the lightbox – is it possible to make it part of it?
Thank you for any insight!
-
hello!
no, row background images are not part of the lightbox.
I think there is no way to do that.Instead of using a row background image, you could insert the image normally using the +Image button. Then it would be part of the lightbox.
-
@arminunruh Hey Armin, thank you for your response.
Please could you see the below page (p: test1):
https://mantaspeteraitis.com/currentsI'd love for the image at the top to be full-screen and setting it as row image background was the only way I could figure out how to achieve this result for both desktop and mobile (although on mobile and certain browser sizes I can see some unwanted padding at the top).
Do you have any tips how to achieve this otherwise (also without padding at the top on certain sizes) so that it could be part of the lightbox?
-
sure
in gridder:
remove the row background imageinsert the image using +image
resize the image to the very left border and right border in the gridder:
https://laytheme.com/documentation/gridder-elements.html#full-width-elementthen right click the image, click "set html class and id"
as class enter: fullscreenin lay options → custom css & html, in custom css enter:
.fullscreen .ph{ padding-bottom: none; height: 100vh; height: 100svh; } .fullscreen img{ object-fit: cover; height: 100vh; height: 100svh; }
-
@arminunruh Thank you Armin, this now works in terms of image being fullscreen and it's included in the lightbox. However, once the page is scrolled, there is a browser-height worth of blank space (see screenshot attached). I tried it on a couple of pages and the result is the same – any idea why this is happening? Thanks again!
-
@arminunruh said in Row image background in lighbox:
fullscreen
use this css instead:
.fullscreen .ph{ padding-bottom: 0!important; height: 100vh; height: 100svh; } .fullscreen img{ object-fit: cover; height: 100vh; height: 100svh; }
-
@arminunruh Thank you Armin!
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