WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] What in a theme will break wp_enqueue_script? (2 posts)

  1. artcoder
    Member
    Posted 5 years ago #

    When I switch to the default theme, it works. When I switched to my custom theme, the wp_enqueue_script fails to add the javascript at the bottom of the page.

    I can not find what difference in the theme files that would cause wp_enqueue_script to fail. Any ideas would be appreciated.

  2. artcoder
    Member
    Posted 5 years ago #

    I was missing the <?php wp_footer(); ?> in the custom theme. That way why it didn't work.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.