I use justified image grid to display posts and galleries and I’m trying to use jquery to make the captions below the images clickable.
They said to use this jquery:
jQuery(‘.jig-imageContainer’).on(‘click’,’.jig-caption-wrapper’,function(){ location = jQuery(this).prev().find(‘a’).attr(“href”); });
which I put in a <script> tag in an element that loads in wp_footer.