Disabling the lightbox for specific links
-
Hello and thank you for this very nice plugin. There is a small issue I was hoping you could help me solve.
I require an option to selectively disable the lightbox feature on some links. For example, when linking to a file on Wikimedia, a link to a page looks like this:
https://commons.wikimedia.org/wiki/File:The_Rocks_NSW_2000,_Australia_-_panoramio_(60).jpg
which wf-magnific-lightox erroneously tries to lightbox, resulting in a message that the image could not be loaded.I’ve looked at the code of
wfml-init.js
and found that thedownload
attr might serve as a workaround. However, that check is overridden by therel
attribute check before that, which makes it impossible to userel="nofollow"
in conjunction withdownload
.Is there a straightforward way to accomplish this? If not, could you perhaps add one? Moving the
download
attr check before therel
attr check would enable my workaround, which would be good enough for my use cases.
- The topic ‘Disabling the lightbox for specific links’ is closed to new replies.