Support » Plugins » wp_enqueue_script not including my script

  • Hi, I am working on developing a plugin and in the plugin I have hooked a function to the “wp_head” action.

    In that callback, I would like to add my JavaScript to the head of the web page. To do this, I use the wp_enqueue_script function.

    However, the script is not included in the web page. I can’t find any indication of why it is not included.

    In the same callback, I also include some style file with wp_enqueue_style and those are included and I can see them in the web page source.

    I have verified that the script file that I am trying to include is present on the file system and I can access it directly through my browser.

    Why would my script not be included? Thank you

  • The topic ‘wp_enqueue_script not including my script’ is closed to new replies.