• swiftset

    (@swiftset)


    Hello, I was working on a plugin (http://www.tangentspace.net/cz/archives/2005/05/jsmath-and-wp), and needed to write to the body element before any posts were displayed. I looked at the WP Wiki, but didn’t find an appropriate hook. Eventually I ended up adding one (wp_bodytop) to the function get_header() in template-functions-general.php. Am I missing some other way of doing this?

    Thanks
    Alex

Viewing 2 replies - 1 through 2 (of 2 total)
  • ColdForged

    (@coldforged)

    None that I can see. Perhaps make a mosquito request for it as it seems a sensible and useful hook to include.

    Joshua Sigar

    (@alphaoide)

    are you loading a javascript function? Can you not print the following in head section?

    <script type="text/javascript">
    function foo() {}
    window.onload = foo;
    </script>

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘plugin hook for top of body element?’ is closed to new replies.