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. Excluding Images from Lightbox

Excluding Images from Lightbox

Scheduled Pinned Locked Moved Addons
pointer-eventslightboximagesexclude
7 Posts 3 Posters 1.7k 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.
  • R Offline
    R Offline
    RoelOfThirds
    wrote on last edited by
    #1

    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
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RoelOfThirds
        wrote on last edited by
        #3

        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
        0
        • arminunruhA Offline
          arminunruhA Offline
          arminunruh
          Global Moderator
          wrote on last edited by
          #4

          nah theres no possibility to do that right now :/

          1 Reply Last reply
          0
          • arminunruhA Offline
            arminunruhA Offline
            arminunruh
            Global Moderator
            wrote on last edited by
            #5

            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;
            }
            
            kurtwoerpelK 1 Reply Last reply
            0
            • arminunruhA arminunruh

              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;
              }
              
              kurtwoerpelK Offline
              kurtwoerpelK Offline
              kurtwoerpel
              wrote on last edited by
              #6

              @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
              0
              • arminunruhA Offline
                arminunruhA Offline
                arminunruh
                Global Moderator
                wrote on last edited by
                #7

                please use this:

                .exclude img{
                pointer-events: none;
                }
                
                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
                R
                rospax
                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