I'm already using fancybox to display pictures in a CMS gallery page, which I accomplished by putting this javascript into 'Custom Code' in the back office:
So for the banner link I thought, 'Great, I probably just need to edit blockbanner.tpl to append class="fancybox" to the URL.' But nothing is ever that straightforward, is it? It actually works on CMS and product pages, but not on the home, category or search pages. I've tried putting that js directly into the global.js file and the index.js file but it doesn't work. Any ideas what, if anything, I can do to fix this?
Question
Angstony_2
I'm already using fancybox to display pictures in a CMS gallery page, which I accomplished by putting this javascript into 'Custom Code' in the back office:
$(document).ready(function() { $("a.fancybox").fancybox(); });
So for the banner link I thought, 'Great, I probably just need to edit
blockbanner.tpl
to appendclass="fancybox"
to the URL.' But nothing is ever that straightforward, is it? It actually works on CMS and product pages, but not on the home, category or search pages. I've tried putting that js directly into theglobal.js
file and theindex.js
file but it doesn't work. Any ideas what, if anything, I can do to fix this?5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now