jQuery Lightbox not working
Posted: Thu Jan 14, 2016 11:53 pm
Hello,
i just downloaded Lightbox and created a new folder in my "jquery" folder (which already existed because of some other scripts).
Its located in "catalog/view/javascript/jquery/lightbox"
I then downloaded the header.tpl from "catalog/view/theme/default/template/common" and pasted this line
between </div> and <?php } ?> as the second last row. Its in <body> tag.
And the other one
right under some other <script> and <link> where also <script src="catalog/view/javascript/jquery/jquery-2.1.1.min.js" type="text/javascript"></script> was located. Its in the <head> tag.
I then uploaded everything and i cannot get it working with the given code
Any ideas?
i just downloaded Lightbox and created a new folder in my "jquery" folder (which already existed because of some other scripts).
Its located in "catalog/view/javascript/jquery/lightbox"
I then downloaded the header.tpl from "catalog/view/theme/default/template/common" and pasted this line
Code: Select all
<link href="catalog/view/javascript/jquery/lightbox/dist/css/lightbox.css" rel="stylesheet">
And the other one
Code: Select all
<script src="catalog/view/javascript/jquery/lightbox/dist/js/lightbox.js"></script>
I then uploaded everything and i cannot get it working with the given code
Code: Select all
<a href="images/image-1.jpg" data-lightbox="image-1" data-title="My caption">Image #1</a>