Jump to content

Help With Fancybox In Prestashop 1.6


Recommended Posts

Hi all I 'm trying to create a gallery of images on a CMS page using fancybox but i cant do it to work , I followed several tutorials including these but it has not worked for me :

This is an example of code that does not work in CMS , it just leads me to the bigger picture and I do not open it in the frame of fancybox :

<p><a href="http://ecokamin.com.mialias.net/img/cms/10361335_1428120704122897_2787639426026746628_n.jpg" rel="gallery" class="fancybox"><img src="http://ecokamin.com.mialias.net/img/cms/10361335_1428120704122897_2787639426026746628_n.jpg" alt="ver foto en Fancybox" title="ver foto en Fancybox" width="223" height="297" /> </a></p>

tried adding the corresponding function in both " global.js " and " cms.tpl " files but it goes with none have some help ?, thanks .

$(document).ready(function(){$(".fancybox")
.attr('rel', 'gallery')
.fancybox({
openEffect: 'elastic',
prevEffect: 'fade',
});
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...