[Support request] jquery not working for me?

Home Forums Support [Support request] jquery not working for me?

Home Forums Support jquery not working for me?

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #970638
    Melissa

    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.

    I’m not seeing any effect.

    Do you have any advice?

    #970653
    Leo
    Staff
    Customer Support

    Hi there,

    Have you checked with their support or make sure the code works in a default twenty series themes?

    GeneratePress itself can’t really interfere with the code.

    #970656
    Melissa

    Yeah, unfortunately their support just said that it was tested and should work.

    Just wondered if you had advice. I’ll keep trying.

    #970660
    Leo
    Staff
    Customer Support

    Do they have specific instructions on where to add it?

    #970662
    Melissa

    No. I thought the footer was the right place?

    #970668
    Leo
    Staff
    Customer Support

    It should be.

    Does it work if you use a default WP theme?

    #970669
    Melissa

    I’m not sure. Generatepress elements won’t keep working if I change themes, right?

    #970670
    Leo
    Staff
    Customer Support

    Yup you’d have to add it using function.

    wp_footer is a WordPress hook though it should be the same in the default theme.

    #970673
    Melissa

    I’ll try to do that tomorrow.
    Thanks!

    #973355
    Leo
    Staff
    Customer Support

    Sounds good.

    Hopefully you’ve sorted this 🙂

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.