Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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

    #99345

    Hi jodi,

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

    Regards,

    Devin

    #99346

    ok, thanks; i will try that :)

    #99347

    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:

    <?php

    /* 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! :)

    #99348

    Hey!

    Glad that you solved the problem :)

    Best regards,

    Peter

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

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