• Hi. I have no idea if this is the right place to post this, but here it goes.
    I have a couple of jquery functions in my functions.php file declared like this:

    function myFunction() {
    wp_enqueue_script(‘myFunction’,get_template_directory_uri() . ‘/js/myFile.js’, array(‘jquery’));
    }

    All my jquery and javascript goes is in the ‘myFile.js’.
    Later I try to call the funtions by using
    add_action( ‘wp_enqueue_scripts’, ‘myFunction’ );
    in the same functions.php file.
    The problem is, the code is not working on Firefox and IE, only on chrome. Anyone has any idea why?

The topic ‘wp_enqueue_script only working on Google Chrome.’ is closed to new replies.