Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Row image background in lighbox

    Addons
    2
    7
    42
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      minutes last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • arminunruh
        arminunruh Global Moderator last edited by

        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.

        M 1 Reply Last reply Reply Quote 0
        • M
          minutes @arminunruh last edited by

          @arminunruh Hey Armin, thank you for your response.

          Please could you see the below page (p: test1):
          https://mantaspeteraitis.com/currents

          I'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?

          1 Reply Last reply Reply Quote 0
          • arminunruh
            arminunruh Global Moderator last edited by

            sure

            in gridder:
            remove the row background image

            insert 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-element

            then right click the image, click "set html class and id"
            as class enter: fullscreen

            in 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;
            }
            
            M 1 Reply Last reply Reply Quote 0
            • M
              minutes @arminunruh last edited by

              @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!

              Screenshot 2023-08-19 at 17.38.34.png

              1 Reply Last reply Reply Quote 0
              • arminunruh
                arminunruh Global Moderator last edited by

                @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;
                }
                
                M 1 Reply Last reply Reply Quote 0
                • M
                  minutes @arminunruh last edited by

                  @arminunruh Thank you Armin!

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post
                  Post a link to where the problem is if possible, please <3
                  I don't answer or check forum DMs, please just post on the forum.
                  Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com

                  Before you post:

                  Use the Search Feature. Maybe there is already a solution to your issue.

                  1. Update Lay Theme and all Lay Theme Addons
                  2. Disable all Plugins
                  3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
                  4. When using a WordPress Cache plugin, disable it or clear your cache. Now see if your problem solved itself.
                  Go here, see if your problem is listed here:
                  Troubleshooting

                  When you post:
                  1. Post a link to where the problem is
                  2. If the problem is difficult to explain, post screenshots / link to a video to explain it

                  Thanks!

                  Online Users

                  A

                  Recent Topics

                  • A

                    website not loading on iphone safari

                  • Gridder hides content / thumbnail grid

                  • L

                    project Index with full date

                  • 6.3.2 Failed to load plugin url ... tinymce_fontloader.js

                  laytheme.com