Free Google Webfonts plugin for WordPress

Ben Moss.
July 17, 2013
Free Google Webfonts plugin for WordPress.

thumbnailGoogle Fonts are a tremendous addition to any designer's arsenal, providing a basic library of typefaces that cover most requirements. But if you've ever tried to add them to a WordPress theme you'll know what kind of hacking is involved.

Fortunately, web designer Eric Alli has recognized the issue and released a great plugin for WordPress that will allow anyone to utilize Google's font library.

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'
)
}
}

There are obvious omissions: there are no line-height, or tracking settings for example, which are vital for body text and display text respectively; however, the plugin is only at version 1.0 and hopefully more will be added over time.

I'd encourage anyone to download the Google Typography plugin and give it a try, it's a simple, intuitive way of adding Google fonts to WordPress sites; easy to use but fantastically flexible.

What I love about the web design community is that for everyone who rehashes someone else's product to make a quick buck, there's someone else who releases something really useful, free of charge. Eric Alli's Google Typography is a case in point, and it makes the web just a little bit better.

Have you used Google Typography yet? What options do you wish were included? Let us know in the comments.

Ben Moss

Ben Moss has designed and coded work for award-winning startups, and global names including IBM, UBS, and the FBI. When he’s not in front of a screen he’s probably out trail-running.

Read Next

3 Essential Design Trends, November 2024

Touchable texture, distinct grids, and two-column designs are some of the most trending website design elements of…

20 Best New Websites, October 2024

Something we’re seeing more and more of is the ‘customizable’ site. Most often, this means a button to swap between…

Exciting New Tools for Designers, October 2024

We’ve got goodies for designers, developers, SEO-ers, content managers, and those of you who wear multiple hats. And,…

15 Best New Fonts, September 2024

Welcome to our roundup of the best new fonts we’ve found on the web in the previous four weeks. In this month’s edition…

3 Essential Design Trends, October 2024

This article is brought to you by Constantino, a renowned company offering premium and affordable website design You…

A Beginner’s Guide to Using BlueSky for Business Success

In today’s fast-paced digital world, businesses are always on the lookout for new ways to connect with their audience.…

The Importance of Title Tags: Tips and Tricks to Optimize for SEO

When it comes to on-page SEO, there’s one element that plays a pivotal role in both search engine rankings and user…

20 Best New Websites, September 2024

We have a mixed bag for you with both minimalist and maximalist designs, and single pagers alongside much bigger, but…

Exciting New Tools for Designers, September 2024

This time around we are aiming to simplify life, with some light and fast analytics, an all-in-one productivity…

3 Essential Design Trends, September 2024

September's web design trends have a fun, fall feeling ... and we love it. See what's trending in website design this…

Crafting Personalized Experiences with AI

Picture this: You open Netflix, and it’s like the platform just knows what you’re in the mood for. Or maybe you’re…

15 Best New Fonts, August 2024

Welcome to August’s roundup of the best fonts we’ve found over the last few weeks. 2024’s trend for flowing curves and…