I am trying to use the jQuery plugin HCaptions on a WordPress website that I'm developing, so that when the mouse hovers over an image some information will appear over the image.
I've been able to enqueue the script within the theme's function-extras.php file and I can see that the script has loaded along with all the other scripts, however the script isn't handling the hover event as desired. At this stage I've just copied and pasted the suggested default code from the HCaptions repository but have referenced my own image as follows:
<a href="#myToggle" class="panel">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/test-feature-image.jpg" />
</a>
<div id="myToggle" class="cap-overlay hide">
<h5>Cupcakes</h5>
<div class="content">
Name: cupcakes.png<br />
Photography: Ryun Shofner<br />
<a href="javascript:void(0)" class="button small"><i class="icon-edit"></i> Edit</a>
<a href="javascript:void(0)" class="button small"><i class="icon-remove"></i> Delete</a>
</div>
</div>
The site I'm working on can be accessed at www.heartinhand.com.au. Any suggestions greatly appreciated.