AWPGuide

Beginner's Guide For WordPress

  • Blog
    • Monetization
    • Reviews
    • Showcase
    • WordPress Guides
    • ScanWP
  • Start Here
  • Deals
  • Blueprint

Last Updated On December 28, 2018 By Christina

AWPGuide » WordPress Guides » How To Add Google Fonts To WordPress

How To Add Google Fonts To WordPress

How To Add Google Fonts To WordPress

Most WordPress theme developers will embed a custom Google font on their themes. Some are hosted the font’s locally and some are calling the fonts from Google fonts website. Some folks need to use a custom Google font on their WordPress blog.

If you want, this tutorial is for you! In this post, we are going to show you the right ways to add Google fonts to WordPress blog.

Why Add a Custom Font?

Well for improving your blog, you could do this. As an example, let’s take the Aspire Pro WordPress theme. The theme’s inbuilt font is not kind of awesome! ( I am sorry Wes!)

font of aspire pro theme

It does not seem very nice. For improving the user’s experience, you can use any custom Google font on your theme. So, you can change the font to your new one.

Your readers will stay on your website.

How To Add Google Fonts To WordPress Blog?

So, let’s start adding custom Google fonts to your WordPress blog.

First of all, log in to your WordPress admin area and go to the theme editor.

wp theme editor

It’s just below the appearance section. Check if the theme got a header.php file.

Most standalone WordPress themes come with the file. If you are using any child theme, you will not get this file. In that case, you need to download the header.php file from your parent theme, upload it to your child theme’s folder.

You can use the FTP or file manager for downloading and uploading files.

In our case, we are using the Twenty Seventeen WordPress theme. It’s a standalone theme and got the header.php file.

So, that part is cleared. Let’s move to the second step.

Choosing The Best Font

There are so many fonts are available in the Google fonts directory.

You need to go to Google fonts.

Google fonts directory

You can search for a font from there. In our case, we are huge fans of the Work Sans font.

work sans web font

Let’s take this font. All you need to do this is, click on the “select this font” button.

work sans font selecting

They will give you a standard embed code for using on your website. Simply copy it.

work sans font code

In the WordPress theme header file (header.php), you need to paste this code.

Adding Font To WordPress

Just before the </head> tag. Like this.

add word sans to header file

Simply update this file. Once you did, it is time to specify the font on your theme’s CSS file.

If you are using a child theme, you can paste the CSS right in your child theme’s style.css file. But if you are using any standalone WordPress theme, you need to use the additional CSS section or need to edit the style.css file with the new font CSS.

Go to the customizer. There, you can add additional CSS.

For using the font, use the CSS like this:

font-family: 'Work Sans', sans-serif;

In the customizer, go to the additional CSS section.

ading additional css in wordpress

For using the font everywhere on your blog, you can use the below CSS:

body {
	font-family: 'Work Sans', sans-serif;
	font-size: 16.8px;
	font-weight: 500;
}

You can see the live preview of your changes.

work sans live preview

If you don’t want to use all over the blog and just need it on the headings, CSS will be like:

.entry-header .entry-title {
	font-family: 'Work Sans', sans-serif;
	font-size: 38px;
	font-weight: 700;
}

NOTE: Class may be varied. You need to find exact CSS class of the element and use it for styling them.

When you are good, just publish the changes.

publish css changes

Pretty simple isn’t it?

We hope you found this post helpful and learned how to add Google fonts to WordPress. If you did, please consider sharing this post with your friends and fellow bloggers. It will help them to use a custom Google font in their WordPress blog.

For more related posts, you need to check out our blog section.

Full Disclosure This post may contain affiliate links, meaning that if you click on one of the links and purchase an item, we may receive a commission (at no additional cost to you). All opinions are our own and we do not accept payments for positive reviews.

About Christina

Christina is the lead editor in AWPGuide.
She will mainly write about WordPress tutorials, product reviews, monetization tricks, and related stuff.
Christina is led by Sreehari.

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let us have a personal and meaningful conversation.

Learn WordPress Now!

Never miss our updates! We are adding fresh contents daily!
Join our newsletter and learn WordPress now!

The Best of AWPGuide

We have the best guides here! Some of them are below!

Beginner's Guides

  • 1
    Media.net Review (and RPM Optimization Guide)
  • 2
    Grammarly Review: Free Proofreading Tool
  • 3
    Why You Need To Build an Email List?
  • 4
    How To Start a Free Blog on CloudAccess.net
  • 5
    Aspire pro Documentation and Setup
  • 6
    WP Engine Affiliate Program Review
  • 7
    How To Add Coupon Section In WordPress

Theme Reviews

  • 1
    Jupiter X WordPress Theme Review
  • 2
    Newsmag WordPress Theme Review
90% DISCOUNT
AWPGuide
Namecheap October .xyz Domain Coupon

Namecheap October .xyz Domain Coupon

You can get 90% off on all .xyz domains! Check out the coupon code and get your .xyz domain name now! This is a limited time deal.
Get This Deal

ABOUT AWPGUIDE

Finally we have launched AWPGuide blog! At this time of writing, we know, there are so many blogs are providing blogging and money making tips and tricks.

We are not like them! In AWPGuide, we will cover WordPress, blogging, SEO, make money online guides and will teach you how to start, maintain and monetize a WordPress blog.

All these guides will be 100% free and always it will be. We are not running a typical membership website for making money. Also, AWPGuide is free from display advertising, pop-up ads and URL shortner!

For more, feel free to check out our about page.

SITE LINKS

About Us

Advertise Here!

Contact Us

Free Blog Setup

Terms of Service

Write For Us!

Privacy Policy

Deals

OptinMonster Coupon

MyThemeShop Coupon

WPForms Coupon

Bluehost Coupon

CSS Hero Coupon

Social Warfare Coupon

REVIEWS

Genesis Framework

WP Coupons

WP Review Pro

Slider Revolution

Newsmag

Jupiter X

MonsterInsights

© 2023 · AWPGuide LLC