How to Change WordPress Fonts (Multiple Methods)

Fonts are an important element while creating a visually stunning WordPress website. Using the right font can change the look and feel of your website in a second. That is why it is important to know how to change WordPress fonts on your website. This font is compatible with most of the responsive WooCommerce WordPress themes.

This tutorial will demonstrate the simplest and most effective ways to add a custom font to a WordPress website. At the end of this tutorial, you can implement custom fonts on your WordPress website in seconds. 

 

2 Methods of How to Change WordPress Fonts

 

Method 1: Using Easy Google Fonts Plugin

Google fonts are widely popular and easy to use. In a few easy steps, you can use the Easy Google Fonts plugin to add your preferred Google font.

Step 1: 

First, we need to install the Easy Google Fonts Plugin. Hover on ‘Plugins’ from the WordPress dashboard and click on ‘Add New.’

add a custom font to a WordPress

Step 2:

Inside the WordPress plugin directory, search for the Easy Google Fonts plugin. Click to install and activate the plugin.

woocommerce themes

Step 3:

After activating the plugin, go to your theme customizer. For this tutorial, we are using the Astra theme, one of the most popular themes in WordPress

add a custom font to a WordPress

Step 4:

In your theme customizer, open the ‘Typography’ > ‘Default Typography.’ 

modern woocommerce themes

Step 5:

You will find many font options inside the typography section. You can select the Google fonts for each of your purposes individually. The Easy Google Font’s default typography settings allow you to customize fonts for headings and paragraphs.

See also  10+ WordPress Resume Themes for Any Profession (mostly free)

add a custom font to a WordPress

Step 6:

Click on the ‘font family’ option in each section and choose the font you want. You will see a large list of all free Google fonts being displayed to choose from. Click on any font you like, and you will see the change in real-time.

wordpress woocommerce themes

Step 7:

Easy Google Fonts default control allows you to change the headlines and paragraph fonts. If you want to control texts of the different elements of your theme, you can create your own custom font controls. From the WordPress dashboard, hover on ‘Settings’ and click on ‘Easy Google Fonts.’ This step is similar to the best SEO themes for WordPress.

add a custom font to a WordPress

Step 8:

You will be taken to the ‘Create’ tab on the plugin’s settings page. For this tutorial, we will create a custom form control for the blockquote element. Type the name of your form control and then click on the ‘Create Font Control.’

woocommerce wordpress themes

Step 9:

Upon creating the custom form control, you will be taken to the ‘Edit’ tab, where you can customize the font control more. Type ‘blockquote’ or other selectors for the specific element in the CSS selector box.  Click ‘Save Font Control.’

add a custom font to a WordPress

Step 10:

After creating and saving our custom form control, open the theme customizer again and go to ‘Typography.’ This time you will see there is an additional typography section named ‘Theme Typography.’ Click to open the ‘Theme Typography.’

woocommerce themes for wordpress

Step 11:

Inside the theme typography, we will see the font controls for the Blockquote section we just created earlier. Now using this newly created Blockquote custom font control, you can easily change and control all the text related to the Blockquote element. Following this process, you can create custom form controls as many as you like. In that case, You can learn how to add a contact form on WordPress easily  

See also  How to Use WordPress Recovery Mode Easily (2 Ways)

add a custom font to a WordPress

Method 2: Manually Add Google Fonts (No Plugin)

The second method to add a custom font to a WordPress website is about adding Google fonts to your WordPress website manually. This process is rather simple and requires no plugin. 

Step 1:

Visit the link fonts.google.com and click on a font of your likeness to implement in your website.

best elementor theme for woocommerce

Step 2:

Click on the font style ‘Regular 400’ to add it to the selected family list. Click on the ‘square +’ icon in the top right corner. 

add a custom font to a WordPress

Step 3:

Now copy the embed code as shown in image(1). You will need to paste it to the web page header design section of your WordPress website. You will also need the CSS code(2) to apply the font wherever you prefer.

woocommerce themes for wordpress

Step 4:

We will use the WPCode plugin to insert the embed code into the website header. That way, you do not need to alter the website’s source code. In the WordPress plugin directory, search for WPCode and install and activate it. WPCode supports all free modern and creative WordPress themes

add a custom font to a WordPress

Step 5:

From the WordPress dashboard, hover on ‘Code Snippets’ and click on ‘Header & Footer.’

best woocommerce theme elementor

Step 6:

You will be taken to the global header and footer section. Paste the embed code we copied earlier into the header section and click ‘Save Changes.’

add a custom font to a WordPress

Step 7:

Open any post in the block editor. Select a paragraph block and click on ‘Edit as HTML’ from the block toolbar. 

best premium woocommerce themes

Step 8:

Inside the <p> tag, type style=”font-family: ‘Aboreto’, cursive;” as shown in the image. Inside the style, the attribute is the CSS code of the font we copied earlier. Now click ‘Update’ to save changes and visit the page. 

Step 9:

We can see that we successfully changed the font of the text within the <p> tag with our chosen font. 

Conclusion

The methods mentioned above for adding custom fonts to your WordPress website are very effective. Using the plugin, you can implement any google font and create custom font control for specific modules. The second method is simple and effective and reduces website loading time as you are only using what you need, with no extra files. You can use any of these two methods to give your WordPress website a smart and elegant look. 

Feel free to check our article on how to add Google Recaptcha contact form 7 to get insight into the dynamic functionalities of WordPress.


Subscribe To Our Newsletter!
Hi, I’m Mohamed. I share delicious recipes that I have cooked and loved. I’ve been food blogging for over 10 years and have a Diploma in Nutrition. You will find many healthy recipes as well as my favourite comfort food on the blog because I believe in a balanced diet.

Related Posts

Fintech’s biggest hits and misses of 2023

As 2023 comes to a close, we’re here to look back at the biggest fintech stories of the year. Silicon Valley Bank’s implosion felt like a fintech…

It’s critical to regulate AI within the multi-trillion-dollar API economy

Alex Akimov Contributor With two decades of tech leadership experience, Alex Akimov, former head of API at Adyen, now revolutionizes embedded finance at Monite by building best-in-class…

EU’s provisional deal on gig worker rights fails to get enough backing from Member States

Not so fast on that Christmas present for precarious gig workers in the EU: A political deal announced mid month, which aims to bolster platform workers rights…

Arduino exploring India manufacturing to limit counterfeit sales

Arduino is considering manufacturing in India. The startup, best known for its open source microcontroller boards, hopes to restrict the rise of counterfeit boards and cater to…

Top robotics names discuss humanoids, generative AI and more

Last month, I took an extended break. In a bid to keep my robotics newsletter Actuator (subscribe here) up and running, however, I reached out to some…

Pornhub owner pays US government $1.8M to resolve sex trafficking probe

Pornhub’s parent company Aylo Holdings will pay $1.8 million to the U.S. government to resolve a charge of profiting off of sex trafficking. The company, formerly known…