SVKpneux Posted November 27, 2015 Share Posted November 27, 2015 Hello. I try to find solution, but still no success. Can U help me? Thank you a lot. Sorry for my English. Peter Link to comment Share on other sites More sharing options...
NemoPS Posted November 27, 2015 Share Posted November 27, 2015 It's a bit vague, what's your issue? Link to comment Share on other sites More sharing options...
zaglebie Posted November 27, 2015 Share Posted November 27, 2015 propably he wants to open images on cms pages in fancybox instead of in new browser window, i have problem with that too Link to comment Share on other sites More sharing options...
NemoPS Posted November 27, 2015 Share Posted November 27, 2015 If so, have a look at this: http://nemops.com/prestashop-custom-popups/ Link to comment Share on other sites More sharing options...
SVKpneux Posted November 27, 2015 Author Share Posted November 27, 2015 I added this code to cms.tpl <script type="text/javascript">{literal} $(".fancybox").attr('rel', 'gallery').fancybox();{/literal}</script> When I add class="fancybox" to image, it is opened like fancybox. But, my problem: when I disable SSL...it works but, when I active SSL...it doesn´t Link to comment Share on other sites More sharing options...
NemoPS Posted November 28, 2015 Share Posted November 28, 2015 You might want to check the image url is also retrieved via ssl Link to comment Share on other sites More sharing options...
SVKpneux Posted November 28, 2015 Author Share Posted November 28, 2015 I use https in url....The image is opened, but no like fancybox. Link to comment Share on other sites More sharing options...
NemoPS Posted November 30, 2015 Share Posted November 30, 2015 Can you make sure the url javascript is grabbing is also with https? Otherwise you won't be able to open it Link to comment Share on other sites More sharing options...
SVKpneux Posted November 30, 2015 Author Share Posted November 30, 2015 Js use https. But in chrome console, there is warning: Uncaught TypeError: $(...).attr(...).fancybox is not a function(anonymous function) @ 15-fancybox:116715-fancybox:1167 GET https://www.google-analytics.com/analytics.js net::ERR_BLOCKED_BY_CLIENT(anonymous function) @ 15-fancybox:1167(anonymous function) @ 15-fancybox:1167 Link to comment Share on other sites More sharing options...
NemoPS Posted December 2, 2015 Share Posted December 2, 2015 (edited) Looks like fancybox is not loaded in the https version of the page, for some reason Edited December 2, 2015 by Nemo1 (see edit history) Link to comment Share on other sites More sharing options...
tiendatutorial Posted January 11, 2017 Share Posted January 11, 2017 try this 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