Yakje Posted March 12, 2015 Share Posted March 12, 2015 (edited) Hello, I am using PrestaShop v1.6.0.9 and installed THIS blog module: You can take a look at my site through the following link: http://goo.gl/FLwpyz Now the problem i have encountered in this blog is i can't seem to get the images in my posts to show up in a nice thickbox once clicked. This is how i tried to serve one of the images in a thickbox window: <a class="fancybox" title="Kaarsen gieten materiaal overzicht" href="https://imkershop.nl/fotos/kaarsenmaken/n/overzicht-kaarsenmaken-imkershop.jpg"><img title="Bijenwas kaarsen gieten overzicht" src="https://imkershop.nl/fotos/kaarsenmaken/overzicht-kaarsenmaken-imkershop.jpg" alt="Overzichtkaarsen maken" width="250" height="161"></a> I also tried using: class="thickbox" in front of my links, but it doesn't work. Any ideas on how i could get this to work would be highly appreaciated! Edited March 12, 2015 by Yakje (see edit history) Link to comment Share on other sites More sharing options...
Guest Kaylabs Posted March 12, 2015 Share Posted March 12, 2015 (edited) . Edited January 21, 2016 by Kaylabs (see edit history) Link to comment Share on other sites More sharing options...
Yakje Posted March 12, 2015 Author Share Posted March 12, 2015 (edited) Thanks for the quick reply Kaylabs! I am not known with terms like domready , could you explain in which file i should add certain code to make it work? I am indeed aware of the different classes used, this was only for testing purposes. Edited March 12, 2015 by Yakje (see edit history) Link to comment Share on other sites More sharing options...
Guest Kaylabs Posted March 12, 2015 Share Posted March 12, 2015 (edited) . Edited January 21, 2016 by Kaylabs (see edit history) Link to comment Share on other sites More sharing options...
Yakje Posted March 12, 2015 Author Share Posted March 12, 2015 (edited) Thanks alot for the quick and clear explenation Kaylabs! I added the following code at the top of posts.tpl (smartblog) <script> $(document).ready(function() { $('.fancybox').fancybox({ }); }); </script> In front of the image link i added: class="fancybox" This is what the whole link should look like <a class="fancybox" title="blablabla" href="https://je link.jpg"> Edited March 12, 2015 by Yakje (see edit history) 1 Link to comment Share on other sites More sharing options...
Guest Kaylabs Posted March 12, 2015 Share Posted March 12, 2015 (edited) . Edited January 21, 2016 by Kaylabs (see edit history) 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