The theme setting “lightbox modal window” is causing buttons that are set to open in a new window to open in a lightbox when a PDF is the link. There is a certain page where I want the action to open in a new window, but on other pages, the lightbox needs to be activated for viewing images.
Please advise how to force buttons to open in a new window when the theme setting “lightbox modal window” is activated.
did those pdf links realy open in a lightbox ?
on /js/avia-snippet-lightbox.js you find that exclude instruction:
exclude : '.noLightbox, .noLightbox a, .fakeLightbox, .lightbox-added, a[href*="dropbox.com"]'
so give to one of the parents a custom-class : noLightbox
adding the class nolightbox worked like a charm. Case closed.
but be carefull – this is casesensitive so noLightbox – not nolightbox.
But if it works – i guess you used the right writing.
Hi leahmessina,
Great, I’m glad that you got things working, and thanks for the update. Please let us know if you should need any further help on the topic or if we can close it.
Thanks @guenni007 for helping out :-)
Best regards,
Rikard