WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Google Font API (4 posts)

  1. efdanehy
    Member
    Posted 4 years ago #

    Now that Google has released a Font API (http://code.google.com/webfonts) any advice about using it in conjunction with WordPress? Into which file should I insert their code? Any other suggestions/advice?

    Thanks!!

  2. stvwlf
    Member
    Posted 4 years ago #

    The fonts have to be defined in the HTML HEAD section, so in most themes that will be header.php

  3. benjaminbradley
    Member
    Posted 4 years ago #

    You copy the embed link to the style sheet (the top box you see in the following example: http://code.google.com/webfonts/family?family=Cantarell#code) into your active theme's header.php file. Make sure that you embed it BETWEEN the <head> </head> tags.

    The second box you see in the above example link... is something you would place in your active theme's style.css file. At this point you need to understand some CSS in order to specify where you want the font to be used.

    Or you can hold off a few more hours and I should be done with a plugin that does all this automatically for you. :)

  4. efdanehy
    Member
    Posted 4 years ago #

    You guys are lovely. Thank you so much.

    ...a plugin? :D I'll look forward to it!

Topic Closed

This topic has been closed to new replies.

About this Topic