Support » Fixing WordPress » How to add script code to body tag

  • How can I add script code to the body tag – sitewide – and not have it overwritten during upgrades?

Viewing 7 replies - 1 through 7 (of 7 total)
  • +1, I’d also like to know 😀


    Please have a check with this formula:


    [spam link moderated]

    Oh, I think my question is slightly different. I’m trying to add a custom ‘onLoad=””‘ attribute to the <body> tag itself. I’m guessing you can do this with a filter perhaps, though I haven’t looked into it.

    @on_edge & @jabalsad:

    Have you people found a solution? I am looking for the same thing.

    It seems that nobody can find the body tag. Did anyone of you add Google Analytics to a blog?
    How does it works!

    The best way to add google analytics is to use the plugin – google analyticator

    It will do if for you automatically

    emmmm… are trying to put this above the body closing tag. check your footer.php in wp-contents -> themes -> default or classic (whichever one you are using). There’s no need for the plugin.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to add script code to body tag’ is closed to new replies.