• MAzCastro

    (@fmacastro)


    Hi

    I’m using the wp_enqueue_script method to add scripts to a theme.

    wp_enqueue_script( 'farbtasticJS', '(..)farbtastic.js');

    when I look at the postProcessed source I can see the scripts correctly included in the head section, but they are completely ignored by the browser.

    If I echo them, they are also correctly included in the head section, but now they are perfectly interpreted by the browser!

    echo("<script type='text/javascript' src='(..)farbtastic.js'></script>");

    weird!

    I want to code this the proper way, and I don’t want to hard-code them by echoing the code.

    Can someone please help me to understand what might be wrong?

    Thanks

    MAC

The topic ‘wp_enqueue_script not working’ is closed to new replies.