How can I ignore prettyphoto at certain link.
I would love to add something like rel=”noprettyphoto” to a href…
Is there a way?
Yes, you can use the noLighbox class – use it like:
<a href="mylink.html" class="noLightbox" />
Thanks Dude, but it does not work.
I even tried target=”_blank” either a href /download.php?file=images/file.jpg – still the script overrides the class and script… any ideas?
Can you try adding this link to a test page and then linking it here so we can see it live?
<a class="noLightbox" href="http://www.youtube.com/">Youtube</a>
The problem is that the class noLightbox which I add to a – does not work at all. It doesn’t disable the lightbox function..
Can you post a link to your test page/website please? I tried to reproduce this issue on my test server but eg following link:
<a href="http://www.kriesi.at/themes/enfold/files/2013/04/dash-iphone2.jpg" class="noLightbox"><img src="http://www.kriesi.at/themes/enfold/files/2013/04/dash-iphone2-495x400.jpg"></a>
did not open in a lightbox which shows me that the noLightbox class works as expected. If you want to remove the overlay too open up angular/js/avia.js and replace:
$(options.autolinkElements, this).not(".noLightbox a").contents('img').each(function()
$(options.autolinkElements, this).not(".noLightbox,.noLightbox a").contents('img').each(function()
The topic ‘disable prettyphoto at particular links’ is closed to new replies.