Disable FancyBox for wikimedia images.
- This topic has 2 replies, 2 voices, and was last updated 8 years, 6 months ago by .
- You must be logged in to reply to this topic.
Your Account / Forums / Easy FancyBox Pro / Disable FancyBox for wikimedia images.
Tagged: FancyBox image exclusions
Hi RavanH,
a couple of years ago I asked you how to disable Easy FancyBox in the links to wikimedia images. An example:
You suggested me to use in each link the “nolightbox” class:
(Wikipedia Link)
OR to add to my footer.php file the following script:
jQuery(document).on(‘ready’, function(){ jQuery(‘a[href*=”commons.wikimedia.org”]’).addClass(‘nolightbox’); });
Both the solutions worked, I used the second one (the script), because this way I could keep my original links (there are a tons of them in my site).
PROBLEM IS that the ‘script’ solution does not work anymore. Something has probably changes in the plugin recently.
Could you please help me to fix the script? My website address is http://www.webfoodculture.com, the image links are at the very bottom of each page.
Many many thanks in advance.
A.
Hi Pharéo,
yes! it works perfectly!
Many many thanks for your help!
Ciao!
Antonio