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

    Hello,

    For all Youtube links I have implemented in the Enfold build we’re working on, I get a lighbox popup.

    Can you suggest a quick coding fix for this that won’t require a URL rewritw such as bitly, etc.?

    Please Advise!
    Seth

    #163084

    Hi Seth,

    You can add noLightbox to your links to prevent the script from grabbing on to them. Eg:
    <a class="noLightbox" href="http://www.youtube.com/">Youtube</a>

    Regards,

    Devin

    #163093

    Devin,

    Thank You! Is there any way to automate this across the site so my client won’t have to deal with the a link class?

    Please Advise
    Seth

    #163296

    Hello!

    Edit js > avia.js, find this code:

    autolinkElements: 'a[rel^="prettyPhoto"], a[rel^="lightbox"], a[href$=jpg], a[href$=png], a[href$=gif], a[href$=jpeg], a[href$=".mov"] , a[href$=".swf"] , a[href*="vimeo.com"] , a[href*="youtube.com"] , a[href*="screenr.com"]'

    Replace it with:

    autolinkElements: 'a[rel^="prettyPhoto"], a[rel^="lightbox"], a[href$=jpg], a[href$=png], a[href$=gif], a[href$=jpeg], a[href$=".mov"] , a[href$=".swf"] , a[href*="vimeo.com"] , a[href*="screenr.com"]'

    Remove browser cache then reload the page.

    Regards,
    Ismael

    • This reply was modified 10 years, 10 months ago by Ismael.
    #163357

    Ismael,

    Thank you so much!

    I’ll update to the new version and then plug this in—will let you know how it goes.

    Cheers
    Seth

    P.S. MAN… did I mention how nice this new forum is (with email notifications and all) a huge kudos to you all!

    #163925

    Hey!

    I’m sure it’ll work.

    Regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘ENFOLD: Youtube Link Lightbox Issue’ is closed to new replies.