Lay Theme Forum

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

    max-width for images in lightbox

    Addons
    2
    8
    515
    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.
    • O
      oli last edited by

      Hey Armin,
      is there any way to prevent that the images are shown up bigger than their original size in the lightbox?

      best
      oli

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

        Hi @oli
        can you show us an example of what you mean?

        Best!

        Marius

        www.mariusjopen.world

        1 Reply Last reply Reply Quote 0
        • O
          oli last edited by

          Hi @mariusjopen,
          i attached a screenshot… in the background you can see the blury lightbox image.
          On top you see the jpg in original size (using the hover-zoom browser plugin).

          It would be great if there is a way to set a max-width for the pictures shown up in the lightbox… or an option that the images are not shown up bigger than their og-size.

          Best!
          Oli

          alt text

          1 Reply Last reply Reply Quote 1
          • mariusjopen
            mariusjopen Global Moderator last edited by

            Dear @oli
            can you send a link?

            Much easier to inspect.

            Best!

            Marius

            www.mariusjopen.world

            1 Reply Last reply Reply Quote 0
            • O
              oli last edited by

              Hi @mariusjopen
              here you go: http://oliverzuber.de/wp1

              Best!
              Oli

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

                Hi @oli
                so on big screens you want to limit the size of the lightbox image to the original size?

                Best!

                Marius

                www.mariusjopen.world

                1 Reply Last reply Reply Quote 0
                • O
                  oli last edited by

                  Hi @mariusjopen
                  Yes!

                  Best
                  Oli

                  1 Reply Last reply Reply Quote 1
                  • mariusjopen
                    mariusjopen Global Moderator last edited by

                    Hi @oli

                    you can add this to your CUSTOM CSS

                    .lightbox-image-holder img {
                        height: initial !important;
                        width: initial !important;
                    }
                    

                    Let me know if that worked out.

                    Best!

                    Marius

                    www.mariusjopen.world

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    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. Now see if your problem solved itself
                    5. 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

                    Recent Topics

                    • C

                      image carousel bugging out

                    • N

                      help needed with cleaning up and optimising lay theme portfolio website

                    • R

                      Html5 Video Player issue

                    laytheme.com