Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13716

    I am using a widget to display social media sites. Whenever I add a http://youtube.com/… address, the link automatically wants to open in a lightbox. I used the class=”nolightbox” to disable a YouTube link from opening in a lightbox. However, when I hover over the image that contains the link to YouTube, I get a video hover effect. I read the support forums and also tried removing the following code from js/avia.js

    //activates the hover effect for image links

    if(jQuery.fn.avia_activate_hover_effect)

    jQuery(‘#main’).avia_activate_hover_effect();

    It did not remove the video effect. Furthermore, I am using the lightbox & video effect for slideshows and am not sure I want to disable the function. Your help is greatly appreciated.

    #80311

    Hi!

    Try to replace following line in js/avia.js:

    $(options.autolinkElements, this).contents('img').each(function()

    with:

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

    Best regards,

    Peter

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

The topic ‘Social Media Widget – Removing Lightbox from Youtube Link’ is closed to new replies.