Riya Posted December 6, 2013 Share Posted December 6, 2013 (edited) Hi, I need to add some effect for my product images in all pages( Home page,category page, etc..) i find out effect (adipoli jqery plugin ) I attached link and zip file for this .. I am using prestashop 1.5 version Adipoli-master.zip Edited December 26, 2013 by Riya (see edit history) Link to comment Share on other sites More sharing options...
Radu Posted December 6, 2013 Share Posted December 6, 2013 as explained here: http://cube3x.com/adipoli-jquery-image-hover-plugin/ you include in your theme header the adipoli js and css then you'll do something like: <script> $(document).ready(function() { $('#bigpic').adipoli(); }); </script> where bigpic is the id of the image on product page. Feel free to add other classes/ids 1 Link to comment Share on other sites More sharing options...
Riya Posted December 7, 2013 Author Share Posted December 7, 2013 how to make this effect to all page? how to get product image id? Link to comment Share on other sites More sharing options...
Riya Posted December 9, 2013 Author Share Posted December 9, 2013 any ideaa??? Link to comment Share on other sites More sharing options...
Radu Posted December 9, 2013 Share Posted December 9, 2013 Have you tried for the product page? Where did you get stuck? Link to comment Share on other sites More sharing options...
vekia Posted December 9, 2013 Share Posted December 9, 2013 there on adipoli plugin page is a instruction: How To UseEnabling image hover effect is very simple. Place the below references inside your head tag. 1 2 3 <link href="css/adipoli.css" rel="stylesheet" type="text/css"/> <script src="js/jquery-1.7.1.js" type="text/javascript"></script> <script src="js/jquery.adipoli.min.js" type="text/javascript"></script> If you need image hover on an image with id ‘image1′, call adipoli plugin like this: 1 2 3 <script> $('#image1').adipoli(); </script> Adding Options: 1 2 3 4 $('#image1').adipoli({ 'startEffect' : 'normal', 'hoverEffect' : 'popout' }); just follow it, instead of $('#image1') use $('img') Link to comment Share on other sites More sharing options...
Riya Posted December 10, 2013 Author Share Posted December 10, 2013 (edited) there on adipoli plugin page is a instruction: just follow it, instead of $('#image1') use $('img') & thank you for your quick reply..I am sorry its not work .no effects in my product_list.tpl Edited December 10, 2013 by Riya (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted December 10, 2013 Share Posted December 10, 2013 how you did exactly? what code and where you add? Link to comment Share on other sites More sharing options...
Riya Posted December 13, 2013 Author Share Posted December 13, 2013 how you did exactly? what code and where you add? just add below things to header.tpl <link href="css/adipoli.css" rel="stylesheet" type="text/css"/> <script src="js/jquery-1.7.1.js" type="text/javascript"></script> <script src="js/jquery.adipoli.min.js" type="text/javascript"></script> and also added $('img').adipoli({ 'startEffect' : 'normal', 'hoverEffect' : 'popout' }); in product_list.tpl No effects .... Link to comment Share on other sites More sharing options...
vekia Posted December 13, 2013 Share Posted December 13, 2013 if you use code with brackets you have to use {literal} tags {literal} $('img').adipoli({ 'startEffect' : 'normal', 'hoverEffect' : 'popout' }); {/literal} moreover, it will be much better if you will add this code in document ready function Link to comment Share on other sites More sharing options...
Riya Posted December 26, 2013 Author Share Posted December 26, 2013 Working thanks... Link to comment Share on other sites More sharing options...
vekia Posted December 26, 2013 Share Posted December 26, 2013 thank you for confirmation that it works. may i ask for something? you use only {literal} $('img').adipoli({ 'startEffect' : 'normal', 'hoverEffect' : 'popout' }); {/literal} or {literal} $( document ).ready(function() { $('img').adipoli({ 'startEffect' : 'normal', 'hoverEffect' : 'popout' }); }); {/literal} Link to comment Share on other sites More sharing options...
Riya Posted December 31, 2013 Author Share Posted December 31, 2013 {literal}$('img').adipoli({'startEffect' : 'normal','hoverEffect' : 'popout'});{/literal} Link to comment Share on other sites More sharing options...
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