I am trying to make my instafeed image links open via fancybox (or any other lightbox!!). I am currently using Easy Fancybox plugin and InstafeedJS. Simply adding the fancybox class to the image link does nothing. I think it is being overridden by my initial instafeed js?
I have searched and searched, but cannot find a solution. Fancybox is working normally on all other "regular" images throughout the site. I also tried copying the output of my instagram feed, and simply pasted the HTML in the page, fancybox worked fine on this test only when I removed
id="instafeed"
from
<div id="instafeed"></div>
My current javascript is as follows:
<script type="text/javascript">
var feed = new Instafeed({
get: 'tagged',
tagName: 'mytagishere',
limit: 14,
links: false,
clientId: 'myclientidishere',
template: '<div class="col-xs-4"><a rel="group" class="fancybox" href="{{image}}"><img style="width:100%;" class="fancybox" src="{{image}}" /></a></div>',
resolution: 'standard_resolution'
});
feed.run();
</script>
<div id="instafeed"></div>
Clearly there is some sort of javascript tweak I need to do in order to make the fancybox/lightbox effect execute properly! I also have no errors in my console. PLEASE advise!! :)