Support » Plugin: Scripts To Footer » How to move js to footer using this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Joshua David Nelson


    This plugin will work automatically and does not have/need any configuration. It will only work, however, if your plugins and theme are using wp_enqueue_scripts correctly.

    You may have a plugin(s) or theme function(s) that place scripts into the wp_head action hook or use another method to place their scripts. You should look at your <head> section with this plugin activated and see which scripts are being placed in the head and which are at the footer. This may give you an idea of which plugins are incorrectly adding scripts, or even if it is your theme (assuming they use javascript in their plugin/theme subdirectory).

    If that is no help, you could try deactivating all the other plugins and switching to a WordPress theme like TwentyTwelve, then checking the head and activating plugins until you figure out which one is the culprit.

    Is it true that some plugin also use javascript for formatting? I observed with one such plugin (javascript to footer) completely messes up the design and distorts many elements on my site.

    The author of that plugin also has warned about correct usage of wp_enqueue_scripts.

    Thanks @joshua, that was useful.

    Plugin Author Joshua David Nelson


    Yes, that plugin actually moves scripts and styles into the footer, which can break up the stylesheet order and change the design. Mine only moves the scripts. There is still potential for errors if your plugins place styles or scripts directly into wp_head or wp_footer instead of enqueuing them correctly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to move js to footer using this?’ is closed to new replies.