Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Addons
  3. In lightbox vertical images show good, but horizontal are oddly small

In lightbox vertical images show good, but horizontal are oddly small

Scheduled Pinned Locked Moved Addons
9 Posts 2 Posters 314 Views
  • 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.
  • A Offline
    A Offline
    apako
    wrote on last edited by
    #1

    Hello,

    I have a problem with the lightbox plugin on my website (https://alicjapakosz.pl/). The vertical images show up great - they fill the screen, but the horizontal ones show up as oddly small. I am attaching screenshots:

    425121f5-493a-448f-9229-00be39d0c302-image.png

    79f9f059-fade-439c-bb8c-638e2fd4005d-image.png

    My settings are:
    0043478d-0f6e-4301-8827-0ae3fe615fbd-image.png

    Both laytheme and lightbox are updated. I use chrome. On mobile images don't show at all, but I figured it is the fault of the settings I have set, not an issue with the plugin? I will be grateful for any advice or help :)

    Greetings,
    Alicja

    1 Reply Last reply
    0
    • RichardR Offline
      RichardR Offline
      Richard
      Global Moderator
      wrote on last edited by
      #2

      Dear Alicja

      @apako

      Thanks for sharing your Settings šŸ‘
      The Images not showing up on Mobile is like you say due to settings,
      the 550px around the image will cause this.

      The 550px may be too high as when testing on my site i also ran into the small image problem, i would suggest using a smaller "space around image"


      Best wishes
      Richard
      1 Reply Last reply
      0
      • A Offline
        A Offline
        apako
        wrote on last edited by
        #3

        Dear Richard,

        thanks for your reply!

        I have changed "space around image" to 200px.

        0d93f3be-9859-4527-91ec-997a4af65471-image.png

        The horizontal images then show up great.

        2e5d225d-9ad1-4be5-be1f-1be184b661d3-image.png

        Unfortunately, the vertical images are cut off as seen here.

        54855553-1fc0-4704-918e-499489ffe63b-image.png

        Is there any way to make both vertical and horizontal images fully visible in the lightbox?

        Greetings,
        Alicja

        1 Reply Last reply
        0
        • RichardR Offline
          RichardR Offline
          Richard
          Global Moderator
          wrote on last edited by
          #4

          Dear Alicja

          @apako

          When viewing your website both the Horizontal and Vertical images seem to be showing up fine & centered within the page, is this not the case for you?


          Best
          RICHARD
          1 Reply Last reply
          0
          • A Offline
            A Offline
            apako
            wrote on last edited by
            #5

            Dear Richard,

            right now the settings are back to the starting point

            "space around image" is set to 550 px.

            And as then, now the vertical images also show up great - they fill the screen, but the horizontal ones show up as oddly small. I've changed it to this setting, so people can view the website, while I wait for your answer.

            In the previous message, I have attached screenshots of how it looks with the "space around image" set to 200px. Then the vertical images are cut off, but the horizontal ones show up great, filling the screen.

            If nothing can be done with it, I will stay with the "space around image" set to 550 px, although it bothers me that the horizontal ones are at a disadvantage.

            But with the "space around image" set to 200px. the verticals are cropped, so it's worse.

            Greetings,
            Alicja

            1 Reply Last reply
            0
            • RichardR Offline
              RichardR Offline
              Richard
              Global Moderator
              wrote on last edited by
              #6

              Dear Alicja

              @apako

              Have sent you a message via 'chats' šŸŒ


              Best
              Richard
              1 Reply Last reply
              0
              • RichardR Offline
                RichardR Offline
                Richard
                Global Moderator
                wrote on last edited by
                #7

                Dear Alicja

                @apako

                Thank you for the Login details. I recreated an exact copy of your setup but was still unsure why the images were being output differently.

                Everything seems fine and i updated Lay Theme. Because i was unable to find why i added some simple CSS:

                #lightbox-inner .swiper-slide img {
                    max-width: 60vh !important;
                }
                

                Please take a look at the portrait and landscape images in Lightbox and let me know your thoughts, have a wonderful day šŸŒ


                Richard
                Keith
                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  apako
                  wrote on last edited by
                  #8

                  Dear Richard and Keith,

                  Thank you for your efforts :). I think it's still the same as it was in the beginning (as seen in the attached screenshots), but maybe it cannot be helped?

                  003a583c-6fb7-4a8f-8e4e-3fd77c0ba679-image.png
                  8e404c6a-b5a0-4e9a-af2d-a6db001c8d61-image.png

                  Have a nice day!
                  Alicja

                  1 Reply Last reply
                  0
                  • RichardR Offline
                    RichardR Offline
                    Richard
                    Global Moderator
                    wrote on last edited by
                    #9

                    Dear Alicja

                    @apako

                    Within the code:

                    #lightbox-inner .swiper-slide img {
                        max-width: 60vh !important;
                    }
                    

                    You can change the value from 60vh to whatever you need to fit the images how you like. I was not able to recreate the bug on any test site so i don't know why you have this issue. It could be the image files themselves but unsure sorry.


                    Sincerely
                    Richard
                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    I also code custom websites or custom Lay features.
                    šŸ’æ Email me here: šŸ’æ
                    info@laytheme.com

                    Before you post:
                    1. When using a WordPress Cache plugin, disable it or clear your cache.
                    2. Update Lay Theme and all Lay Theme Addons
                    3. Disable all Plugins
                    4. 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:
                    1. Post a link to where the problem is
                    2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                    3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                    Online Users
                    StarcS
                    Starc
                    Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                    laytheme.com
                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Search