Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #51365

    FCEadmin
    Participant

    Is there a way to use jquery in this theme through the javascript section in the customizer, or any other way?

    Thank you 🙂

    #51623

    Christian
    Moderator

    Hey Kath,

    Yes, you can use jQuery in the Customizer. Just don’t include <script> tags.

    Thanks.

    #52238

    FCEadmin
    Participant

    I tried using jquery to do a simple alert with no luck but using vanilla javascript I was able to make it work.

    #52413

    Aman
    Member

    Hi Katherine,

    Looks like the issue is resolved. Please get in touch if you still need any help.

    Thanks!

    #53321

    FCEadmin
    Participant

    Well, I would like to use jquery on the theme, but it seems that only javascript is working. Is there a way to fix this?

    #53518

    Rad
    Moderator

    Hi Katherine,

    Could you provide the code of what you’re trying to achieve?

    You could add jquery at customizer’s custom javascript. For example:

    jQuery(function($){
    
    /* javascript or jquery code goes here */
    
    $(document).ready(function(){
       alert('Hey, I am ready! ');
    });
    
    $('a').click(function(){
       alert(' Oh hey!, I am a link :) ');
    });
    
    });

    Or are you trying to embed a jquery’s file url?

    Let us know.

    #54200

    FCEadmin
    Participant

    That works, thank you!

    #54321

    Christian
    Moderator

    You’re welcome Katherine.