Free Google Webfonts plugin for WordPress

Google Fonts are a tremendous addition to any designer’s arsenal, providing a basic library of typefaces that cover most requirements.

Google Typography is a free solution, and the best thing about it is that it’s incredibly simple to use. Once you’ve installed, just navigate to the Appearance > Typography settings page, click Add New to add a new type style and customize your text via the live preview. Once you’ve set up your font, all you have to do is enter the CSS selector to apply it to and click Save; that’s it, your font choice is now being used live on your site.

What’s more Alli has included a register_typography function to enable theme developers to quickly add Google fonts to themes. It makes adding a font as simple as this:

if(function_exists('register_typography')) { 
  register_typography(array(
    'page_titles' => array(
      'preview_text' => 'Page Titles',
      'preview_color' => 'light',
      'font_family' => 'Lato',
      'font_variant' => '300',
      'font_size' => '45px',
      'font_color' => '#252525',
      'css_selectors' => '.page_title'
    )
  }
}

You can download the file from here

 

Share:

Related Articles:

This entry was posted in Freebies, Resources and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>