Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1386373
    Jan Hoogland
    Participant

    Hi,

    I’am trying to implement jquery on my dev-site, but it doesn’t work. Is there a jquery code embed with Theme x? Or do I have to do this manually? On the form I saw that I can place a code in functions.php to add jquery in the header or the footer. I did, but it doesn’t work.

    Jan

    #1386633
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    Thank you.

    #1386888
    Jan Hoogland
    Participant
    This reply has been marked as private.
    #1386892
    Rupok
    Member

    Hi there,

    jQuery library is integrated to WordPress. So if you us any jQuery script then it will work fine. So I guess your code is not correct or you are not using them on right place. You can add your script under Custom > JavaScript in the Customizer.

    Cheers!

    #1386928
    Jan Hoogland
    Participant
    This reply has been marked as private.
    #1386931
    Christopher
    Moderator

    Hi there,

    Instead of $, please use jQuery.

    Hope it helps.

    #1386954
    Jan Hoogland
    Participant
    This reply has been marked as private.
    #1386958
    Christopher
    Moderator

    Hi there,

    I added JS code under cornerstone settings tab/custom js and replaced all $ by jQuery. Also added a custom class to your button. The code works fine now, please check.

    Thanks.

    #1386982
    Jan Hoogland
    Participant

    Hi,

    Yes, it works!

    Out of curiosity: why doesn’t the $-sign work?

    Thanks!

    #1387000
    Christian
    Moderator

    You’re welcome. Please see https://www.w3schools.com/jquery/jquery_noconflict.asp for your question.

    Thanks.

    #1387250
    Jan Hoogland
    Participant

    Ah ok! That makes sense.

    Thanks again.

    #1387268
    Joao
    Moderator

    Let us know if you need further assistance.

    Cheers

  • <script> jQuery(function($){ $("#no-reply-1386373 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>