Mary26 Posted March 17, 2015 Share Posted March 17, 2015 hello,I created a fancybox to open my links cms.I can't adust the width and height of the fancybox .<li style="width:"100%"><i class="icon-truck"></i><a href="#product-cms" id="cms-link"> - Livraison rapide et suivie</a></li><div style="display:none;"><div id="product-cms">{$cms->content}</div></div><scripttype="text/javascript">{literal}$(document).ready(function() {$('#cms-link').fancybox();});{/literal}</script>I tried adding:<scripttype="text/javascript">{literal}$(document).ready(function ({'width' : '75%','height' : '75%', }); });{/literal}</script>but it doesn't workPrestashop 1.6Thank you fot your help Link to comment Share on other sites More sharing options...
kassimi.hn Posted November 3, 2016 Share Posted November 3, 2016 Hi, I'm having the same issue , can you please tell me how did you solve it ? Thanks Link to comment Share on other sites More sharing options...
rocky Posted November 4, 2016 Share Posted November 4, 2016 That won't work. You need something like: $(".fancybox").fancybox({'width':400, 'height':300, 'autoSize' : false}); Link to comment Share on other sites More sharing options...
kassimi.hn Posted November 4, 2016 Share Posted November 4, 2016 thank you rocky , pb solved for me I have one more question how can I have an overlay with my fancybox and how can I give the possibility to close the fancybox if user click on overlay , I mean it s not necessary to click on close button I tried this but it doesn't work : $("#dialog").fancybox({ 'width':800, 'padding':0, 'height':375, 'autoSize' : false, 'overlayShow' : true }) 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