Forums

Move All <script> above </body> (4 posts)

  1. nironan12
    Member
    Posted 9 months ago #

    I've seen many plugins like Lightbox 2 and WP-Polls insert <script> tags in the <head>. How can I make all the <script> that are automatically inserted in the <head> automatically move directly above the </body> tag?

  2. nironan12
    Member
    Posted 8 months ago #

    I need help. Is there something in the plugin code that says create <script> in <head>? If so, where and how do I change it?

  3. iridiax
    Member
    Posted 8 months ago #

    If a plugin (like an Analytics plugin) is inserting a script where you don't want it, I'd recommend just not using that plugin. You can edit your theme files (like footer.php) to add the script yourself.

    If you really want to edit this plugin (which you will have to redo each time it's updated), here's more info:

    http://codex.wordpress.org/Plugin_API/Action_Reference

  4. nironan12
    Member
    Posted 8 months ago #

    Can I make some kind of script that auto-moves the tags in like PHP or Javscript or something? If not, where is the code in the plugins that inserts the javascript so I can take it out and insert if manually?

Reply

You must log in to post.

About this Topic