Support » Fixing WordPress » Hooking a bit of code to wp_head

  • duncmorley

    (@duncmorley)


    I am looking to hook the code below into the wp_head. I have read the wordpress documentation and understand how to link in single .js files. Just wondered if there was a function i could write in the functions.php to hook the code below in without create a file for it.

    <script type="text/javascript">
    	Cufon.replace('h1'); // Works without a selector engine
    	Cufon.replace('#sub1'); // Requires a selector engine for IE 6-7, see above
    </script>

    Any help appreciated.

    Duncs

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hooking a bit of code to wp_head’ is closed to new replies.