Forums

Add 1 line to header.php in Child Theme (2 posts)

  1. Mxsix
    Member
    Posted 1 year ago #

    I have styled the Twenty Ten theme into my own child theme and I just need to add a single line (.js include) to the header.php file. Now I have copied over the whole Twenty Ten header.php file to my child, but I was wondering if there was a simple way to just add <script type="text/JavaScript" src="curvycorners.js"></script> to the header. Thanks!

  2. Dave Redfern
    Member
    Posted 1 year ago #

    Hello,

    You can add javascript and css to the wp_head tag using your functions.php file. Check out http://codex.wordpress.org/Function_Reference/wp_enqueue_script for how to do it.

    Hope this helps.

    Dave.

Topic Closed

This topic has been closed to new replies.

About this Topic