Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #551579

    Hi guys,

    having an issue with the lightbox picking up links that it shouldn’t. For instance here:

    https://www.microstockman.com/stock-images/grazing-yak/

    the only image that should be displayed in the lightbox on this page is the large main image when clicked. If you click it, it comes up. But it thinks it is one of 5 images on the page. Only problem is, the other 4 things that the lightbox is counting aren’t images at all, but just links on the page such as the License link (if you choose an image size you will see this appear) which looks something like this

    https://www.microstockman.com/licensing/#license_smalljpeg

    Here is some code: <span>Royalty Free</span>

    Why are these links not being excluded from the lightbox? How can I fix it?

    Cheers

    #551606

    Hey!

    I suppose you’re doing the same for all “Products” throughout the site, if that’s the case then i’d suggest using CSS to fix this issue:

    .single-product .mfp-prevent-close {
        display: none !important;
    }
    
    .single-product .mfp-counter {
        display: none !important;
    }

    The following will hide the arrows and counter in single product lightboxes.

    Best regards,
    Josue

    #552051

    Hey thanks for that, thats not a bad fix.

    Only problem is this link https://www.microstockman.com/licensing/#license_mediumjpeg (which is on every product page) still gets loaded in the lightbox when it is clicked.

    Any other suggestions?

    Thanks again

    • This reply was modified 8 years, 11 months ago by THP Studio.
    #552138

    Hey!

    Try removing “jpeg” from the path.

    Regards,
    Josue

    #552165

    yep, thats got it. Thanks for that.

    #552180

    You are welcome, glad to help :)

    Best regards,
    Josue

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Lightbox not excluding other links’ is closed to new replies.