• Resolved charlie67p

    (@charlie67p)


    Hi,

    I want to add inside the image caption a link to the original media file, like https://mywebsite.com/wp-content/uploads/myimagefullsize.jpg

    But then of course this image is added to the slider…

    I found that there is a ignoreClass option in baguettebox.

    I gave to the caption ‘a’ tag a “noSlider” class.

    <figcaption class="wp-element-caption"><a class="noSlider" target="_blank">Open full size file in new tab</a></figcaption>

    Then I added the script
    baguetteBox.run('.gallery', { ignoreClass: "noSlider"});

    But it’s not working. The image is still added to the slider.

    How can I proceed?

    • This topic was modified 1 year, 10 months ago by charlie67p.
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Baguettebox ignoreClass option’ is closed to new replies.