If tried adding a link to a YouTube channel through the Brightbox theme in a number of ways. Initially I planned to custom code it into the header like one of the grey icons you have there already (Twitter, Facebook, RSS). It all went fine except when I tried the link, it attempts to bring up a lightbox and says “Image cannot be loaded. Make sure the path is correct and image exist.”
Then I just added the Social Media Widget plugin you can see in the footer now. Same issue exactly. Why does Brightbox think this link to youtube is an image? How do I fix it?
Here’s the site so you can take a gander: http://www.tareendermatology.com/
Thanks for your help.
You just need to add following class to your youtube link:
This class will deactivate the lightbox effect for the particular youtube link.
Unfortunately that did not fix the problem. I tried to paste the code here, but it automatically edits out the class=”nolightbox”
When I inspect element It has the class=”nolightbox” but also has the code rel=”lightbox[auto_group1]” Could this be the problem?
Also, I don’t need lightbox at all on this site, so turning it off completely work for me too, if you could instruct me on how to do that.
Glad that you fixed the issue. For anyone else benefit – you can deactivate the lightbox by removing following code from js/avia.js:
//activates the prettyphoto lightbox
//activates the hover effect for image links
The topic ‘Link to Youtube Broken – Brings Up Lightbox’ is closed to new replies.