Title: wp_enqueue_script not working
Last modified: August 19, 2016

---

# wp_enqueue_script not working

 *  [MAzCastro](https://wordpress.org/support/users/fmacastro/)
 * (@fmacastro)
 * [16 years ago](https://wordpress.org/support/topic/wp_enqueue_script-not-working/)
 * 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.

## Tags

 * [wp_enqueue_script](https://wordpress.org/support/topic-tag/wp_enqueue_script/)

 * 0 replies
 * 1 participant
 * Last reply from: [MAzCastro](https://wordpress.org/support/users/fmacastro/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/wp_enqueue_script-not-working/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
