Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #21905

    Hi

    How can I ignore prettyphoto at certain link.

    I would love to add something like rel=”noprettyphoto” to a href…

    Is there a way?

    thanks

    #113507

    Hey!

    Yes, you can use the noLighbox class – use it like:

    <a href="mylink.html" class="noLightbox" />

    Regards,

    Peter

    #113508

    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?

    #113509

    Hi motylanogha,

    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>

    Regards,

    Devin

    #113510

    The problem is that the class noLightbox which I add to a – does not work at all. It doesn’t disable the lightbox function..

    #113511

    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()

    with:

    $(options.autolinkElements, this).not(".noLightbox,.noLightbox a").contents('img').each(function()

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘disable prettyphoto at particular links’ is closed to new replies.