If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #18409

    hi there

    i would like to add the javascript generated by fonts.com into the head of the pages, and then use custom.css to style h1, etc

    could you please tell me how to add the javascript into the pages – thanks! :) jodi


    Hi jodi,

    The most direct way would be to just add it into the header.php file of the theme files.




    ok, thanks; i will try that :)


    ok, so it worked so i wanted to share my results with others who would like to do the same thing using their fonts.com account –

    in header.php (i put it right after your js code, line, ending around line 75:


    /* my fonts.com javascript */

    echo ‘<script type=”text/javascript” src=”yourfonts.com-url here”></script>’;


    in custom.css

    for the top nav:

    #top .main_menu .menu li {

    font-family:’Avenir LT W01 45 Book’ !important;


    for the h tags:

    h1, h2, h3, h4, h5, h6 {

    font-family:’Avenir LT W01 45 Book’ !important;


    enjoy! :)



    Glad that you solved the problem :)

    Best regards,


Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘add javascript into head’ is closed to new replies.