WordPress.org

Forums

Scripts To Footer
[resolved] How do I know if my theme uses wp_enqueue_scripts correctly? (4 posts)

  1. dbrowne02
    Member
    Posted 1 year ago #

    Hi, this plug-in looks great. Wondering how I can find out if my theme uses wp_enqueue_scripts correctly. I have Pagelines DMS.

    http://wordpress.org/plugins/scripts-to-footerphp/

  2. Joshua David Nelson
    Member
    Plugin Author

    Posted 1 year ago #

    You would have to find the function that registers and enqueues the theme scripts, and you'd have to check your plugins as well. In general, all themes and plugins should be using them correctly - it is outlined as such in the WordPress codex, so it is standard.

    However, not everyone follows standards. Easy way to check would be to install the plugin and activate it, then check to see if all your scripts are at the footer or in the <head> section. Those still in the head are not enqueue properly.

  3. donaldmc79
    Member
    Posted 1 year ago #

    Thank you, I got all but one plugin functioning again and I will just keep working.

  4. Joshua David Nelson
    Member
    Plugin Author

    Posted 1 year ago #

    Glad to hear it's working out! The new version of the plugin allows for you to disable it on specific pages, so, for example, if you have one page with a responsive slider that isn't working you can disable it there and still have it run elsewhere.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic