Tagged: enfold, Lightbox, prettyphoto, problem, Youtube
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
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
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
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
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!