• Hi – just installed the plugin and noticed that the scrolling is enabled by default so when a user enlarges an image they can scroll through the other images on the page. Is it possible to disable this feature so they can’t scroll through and must click each one individually to open?

Viewing 1 replies (of 1 total)
  • Plugin Author csskevin

    (@csskevin)

    Hey,
    There are two ways how you can add an image, so that the Lightbox registers it:
    <a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>
    In this case, Lightbox will just show this image

    However you can add a group of images like this:

    
    <a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
    <a href="images/image-2.jpg" rel="lightbox[roadtrip]">image #2</a>
    <a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a>
    

    The difference here is, that the images are grouped by roadtrip in this case. So you can switch between these three images, due all images contains roadtrip in rel .

    You just need to change the rel attribute to rel="lightbox" in order to get that working.

Viewing 1 replies (of 1 total)
  • The topic ‘Disable scrolling’ is closed to new replies.