• I am trying to use a Jquery navbar in my WP.

    Understanding that I should be including my .js scripts from within the functions.php using the wp_enqueue function, I have tried it but must have something wrong.

    I need to call 2 js scripts. They are both placed in my child theme.

    Could someone please tell me what I am doing wrong?
    Here is the beginning of my functions.php file (with my 2 calls).
    Thank you.

    <?php
    
    wp_enqueue_script('scripts',get_bloginfo("stylesheet_directory")."/example.js", array('jquery'),time());
    wp_enqueue_script('scripts',get_bloginfo("stylesheet_directory")."/jquery.color-RGBa-patch.js", array('jquery'),time());
    
    /**
     * TwentyTen functions and definitions

  • The topic ‘Trying to use wp_enqueue_script to include js script..’ is closed to new replies.