Lay Theme Forum

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

    Excluding Images from Lightbox

    Addons
    pointer-events lightbox images exclude
    3
    7
    1362
    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.
    • R
      RoelOfThirds last edited by

      Hi Armin,

      is there a possibility to exclude images from Lightbox? Let's say I have 6 images in a project. 3 of them are animated gifs and three are jpegs. Now I only want the jpegs to be part of the Lightbox. I tried "pointer-events: none;" but then none of the pictures in any project could be clicked on anymore.

      Thank you!

      Roel

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

        Hey Roel!
        Good idea, right now thats not possible but im adding that to my list for the lightbox addon

        1 Reply Last reply Reply Quote 0
        • R
          RoelOfThirds last edited by

          Awesome! That would be great.

          Is it it somehow possible to limit the size of an image in lightbox? Like for example 1 out of 4 images has a pretty low resolution and i want it to be limited to its actual size. I tried max-width but that only worked in the lay theme. lightbox seems to overwrite that command.

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

            nah theres no possibility to do that right now :/

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

              Hey! I just had an idea about how to exclude images from the lightbox.
              You can add a class to an image using the class button in the gridder when you hover over that image. Like here in "Create a button style": http://laytheme.com/documentation.html#custom-css-styling
              Let's say you add a class of: "exclude"

              Then in "lay options" -> "custom css" you can use this css:

              .exclude{
              pointer-events: none;
              }
              
              kurtwoerpel 1 Reply Last reply Reply Quote 0
              • kurtwoerpel
                kurtwoerpel @arminunruh last edited by

                @arminunruh this was working for me before but doesn't seem to be working after updating my site / lightbox -- any advice?

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

                  please use this:

                  .exclude img{
                  pointer-events: none;
                  }
                  
                  1 Reply Last reply Reply Quote 0
                  • 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

                  H
                  M

                  Recent Topics

                  • H

                    Vimeo embed with autoplay and loop is really slow...help!

                  • B

                    FILTER Categories showing all projects

                  • A

                    website not loading on iphone safari

                  • Gridder hides content / thumbnail grid

                  laytheme.com