[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]
by Web Desk via Digital Information World
"Mr Branding" is a blog based on RSS for everything related to website branding and website design, it collects its posts from many sites in order to facilitate the updating to the latest technology.
To suggest any source, please contact me: Taha.baba@consultant.com
Do you want to make your WordPress website stand out from the crowd?
Custom fonts are one way to give your site that unique look and feel you’ve been craving, even if you’re using the exact same theme as countless other WordPress websites.
In this article, this post, I'll show you how to add new fonts to WordPress. Even better, I’ll show you how to get your hands on thousands of free custom fonts, from two of the Internet’s most popular online font repositories: Abode’s Typekit and Google Fonts.
A great way to make your site look beautiful is with a professional WordPress theme. You can find thousands of the best WordPress themes ever created on ThemeForest.

Although I’ll be focusing on Typekit and Google Fonts, there are countless websites that offer free custom fonts. The process of adding these fonts to your site can vary, but throughout this tutorial I’ll be covering the most common methods, including using plugins and editing your website’s CSS. By the end of this tutorial, you’ll have techniques that you can apply to the majority of custom font repositories, even if they’re not explicitly covered in this tutorial.
If you already have a specific font in mind, then it’s worth booting up your favourite search engine and running a search for custom font followed by a few words that describe your ideal font, such as custom font Netflix or custom font Star Wars.
If you don’t have a particular font in mind, then Typekit and Google Fonts offer thousands of custom fonts, so these two sites should provide you with plenty of options. However, if you’ve trawled Typekit and Google Fonts and still can’t find a font catches your eye, then FontSquirrel, 1001 Fonts and FontSpace are also great places to find custom fonts.
Just don’t get carried away, as cramming your website full of third party fonts can impact its performance, and websites that are forever switching between different fonts tend to be difficult to read, and unpleasant to look at!
There’s typically two ways you can add new fonts to WordPress: use a dedicated plugin, or edit your website’s CSS. In the following sections, I’ll be covering both methods.
Editing your theme’s CSS is a multi-step process, but it’s also one of the most versatile ways to import new fonts:
Head over to the Google Fonts website, and find a font that you want to use. Then click the Select this font link.

A Family selected popup should now appear towards the bottom-right of the screen. Click it.

Make sure the Embed tab is selected, and copy the provided embed code.
In a separate tab, log into your WordPress account.
<head> tag, and paste the Google Fonts embed code directly after this tag. Now that you’ve added this font to your website, you need to define where WordPress should use it, for example maybe want to use the Google Font for your website’s body text or all h1 headings.
Copy the Specify in CSS code.

Switch back to your WordPress tab and find the section of code that represents where you want to use this font. For example, if you wanted to use the font for your website’s body text, then you’d need to locate a section of code that looks something like this:
body{
margin:0;
padding:0;
line-height:20px;
font-size:13px;
color:#5c5c5c;
font-family: 'Montserrat', sans-serif;
-ms-word-wrap:break-word;
word-wrap:break-word;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
This step can vary depending on your theme and the type of text you want to edit. If you’re struggling to work out which piece of code you need to modify, then try opening the style.css file and performing a search for font-family as this will highlight all the code that controls how fonts are used across your website.
Once you’ve identified the correct piece of code, you’ll need to replace the font-family with Google Fonts’ specify in CSS code. For example, my specify in CSS code is:
font-family: 'Indie Flower', cursive;
So I need to replace font-family: 'Montserat' in the style.css file. This gives me the following:
body{
margin:0;
padding:0;
line-height:20px;
font-size:13px;
color:#5c5c5c;
font-family: 'Indie Flower', cursive;
-ms-word-wrap:break-word;
word-wrap:break-word;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
Once you’ve modified the code, save your changes by clicking Update File. Refresh your WordPress website, and it should now be using your new font. Note that if the font doesn’t change following a refresh, then you may need to clear your cache or view your website in an incognito tab.
Since every WordPress theme is unique, editing a theme’s CSS files can sometimes be a challenge.
If you’re struggling to work out which piece of code you need to edit, or you simply don’t like the idea of delving into your website’s CSS, then you can import Google Fonts using the Easy Google Fonts plugin:

Scroll the side-menu until you find the section of text that you want to edit, such as Heading 1 or Paragraphs, then open the Font Family dropdown and choose the Google Font that you want to use.
Once you’ve selected your font, you can customize it using the settings in the Appearance and Positioning tabs, for example you may want to change the font’s colour, size or spacing. When you’re happy with your new font, select Publish.
Your website should now update to use this new font.
Google Fonts isn’t the only place where you can get access to free custom fonts. Let’s look at how you can use CSS to add any font from Adobe’s Typekit repository:

You’ll now need to copy/paste this font’s embed code into your website’s <head> tag. To get your hands on the embed code, navigate to My Adobe Fonts > Web Projects or access the Web Projects page directly.
<style> tags.<head> tag, and paste the embed code directly after this tag.
Save your changes to the theme by clicking Update File.
Now, you need to find the code that defines the font you want to change, and update it to reference your Typekit font instead.
This process will vary depending on the theme you’re using and the text you want to update, but you’ll typically need to complete the following steps:

Check your website; it should now be using your new font!
In this tutorial, I showed you how to customize any WordPress theme, using the endless supply of free fonts available online.
If you’ve been following along, then you now have the entire Google Fonts and Typekit libraries to choose from. However, if you want to download a font from someone other than Adobe or Google, then you should be able to get similar results by finding that font’s embed code and pasting it into your WordPress theme files, using the instructions outlined in this article. Many large font repositories also have dedicated plugins that make it easier to add fonts to your website, so it’s always worth checking whether there's a plugin available.
Are you in the process of giving your WordPress website a makeover? Our collection of professionally-designed WordPress themes can give your website an entirely new look and feel, within minutes.

Here are a few of the best-selling and up-and-coming WordPress themes available on ThemeForest for 2020.
