Adding Lightbox to custom theme NO PLUGINS
-
Hey everyone,
I am having some trouble implementing slimbox 2.0 on my custom theme site.I have linked the three required files in the header.php like so:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script type="text/javascript" src="/js/slimbox2.js"></script> <link rel="stylesheet" href="/js/slimbox2.css" type="text/css" media="screen" />
Next, i transfer these files to the appropriate places along with images, via filezilla,
Then i use the rel=”lightbox” like this:
<p> <a href="<?php the_field('p1logo'); ?>" rel="lightbox" title="Beautiful, isn't it?">Click here</a> if you love star trek. </p>
However, the image constantly shows in it’s own url, nothing lightboxy about at all.
Check it out (in our work section, look for click here sentence at the top) https://www.entirecreative.com/stone
Thanks for any suggestion guys!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Adding Lightbox to custom theme NO PLUGINS’ is closed to new replies.