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 is Senior Editor at WebdesignerDepot. He’s designed and coded work for award-winning startups, and global names including IBM, UBS, and the FBI. One of these days he’ll run a sub-4hr marathon. Say hi on Twitter.

Read Next

3 Essential Design Trends, June 2023

This month we are focusing on three trends within a bigger website design trend – different navigation menu styles and …

15 Best New Fonts, May 2023

The choices you make when selecting a typeface have more impact on your design than almost any other decision, so it’s …

10+ Best Tools & Resources for Web Designers and Agencies (2023 updated)

Having the ability to envision a tastefully designed website (i.e., the role creativity plays) is important. But being …

20 Best New Websites, May 2023

This month, there are tons of great new agency websites to get excited about. 3D animated prisms are a popular theme, a…

How to Find the Right White Label Website Builder for Your Agency

Web design agencies face a lot of obstacles in closing the deal with new clients. One of the most common ones is the ar…

Exciting New Tools For Designers, May 2023

There are hundreds of new tools for designers and developers released each month. We sift through them all to bring you…

3 Essential Design Trends, May 2023

All three of the website design trends here mimic something bigger going on in the tech space, from a desire to have mo…

10 Best AI Tools for Web Designers (2023)

It’s time to stop worrying if AI is going to take your job and instead start using AI to expand the services you can of…

10 Best Marketing Agency Websites (Examples, Inspo, and Templates!)

Marketers are skilled in developing strategies, producing visual assets, writing text with high impact, and optimizing …

15 Best New Fonts, April 2023

Fonts are a designer’s best friend. They add personality to our designs and enable fine typography to elevate the quali…

20 Best New Websites, April 2023

In April’s edition, there’s a whole heap of large-scale, and even full-screen, video. Drone footage is back with a veng…

Exciting New Tools For Designers, April 2023

The AI revolution is having a huge impact on the types of products that are hitting the market, with almost every app b…