In my recent WordPress articles I have stressed upon basic things about WordPress including installation of WordPress, Premium themes and some plug-ins for easy management of WordPress websites. In this post I will take a step further by posting tutorial on adding custom fonts in your WordPress blog or website.
Many a times you must have encountered some webpage with a really attractive font style and you might have thought of using that font for your posts as well. However as you know your site can support only the fonts loaded with it and none other than that by default. But if you are using WordPress website or blog then you would be lucky to know that you can easily add custom fonts to your site posts as well even without having them installed by default on your WordPress theme.
Steps to Add Custom Fonts:
If you are working with code of WordPress, especially with CSS code then you must have got aware of font-family element of CSS coding which gives you ability to change the font-type by specifying the name of the any font installed on WordPress theme.
For Example the font-style of title of your website is specified with following CSS code in style.css document:
Suppose the font you want to use is “Karloff”, but your theme doesn’t support it then you can add this font type following these 3 basic steps:
- Download the font files
- Install the Font to your WordPress theme
- implementing the font with @font-face in CSS
1. Download the Font files
To download the font of your choice you firstly have to find the location of the font from where you can get all files and data about the font. There are a number of websites offering variety of font styles. The most genuine and authorized font downloading websites are Google’s Directory of Web Fonts & Dafont.com font directory.
I will be referencing Dafont.com in this article for downloading KARLOFF font-type.
Search and find the required, say KARLOFF font for this example, on the website and download the full file from there.
2. Install the Font to your WordPress theme
So your task of downloading the font is completed. Now you have to install the font in your own WordPress theme. For this first of all you have to extract the zipped files from downloaded compressed folder. You will basically find two types of files in the folder one in .ttf or .otf format and the other one a text file with installing instructions.
Now for installing the font in your own website’s WordPress them you should create a folder for placing the custom “KARLOFF” font files for better management. So make a new custom folder with easily recognizable name like with your font-name and place the folder in your WordPress theme somewhere (for better management put it under theme file). Install the font there using .ttf or .otf files following installation guidelines.
3. Implementing the font with @font-face in CSS
Now the last step is to work with @font-face selector in CSS file. This selector facilitates you to create support for your downloaded custom font-style by making provision for adding the location of font file in CSS stylesheet code using following syntax:
This code basically includes 4 elements to be discussed in details:
a.) @font-face: This phrase or syntax informs WordPress that you are adding & defining a new custom font.
b.) font-family:Karloff; – This code makes WordPress aware of the name of the font-style you wish to use. If you are adding some font other than KARLOFF then you will be using that name here.
c.) src:url(www/wp-content/themes/thesis-bp-child/custom-fonts/KARLOFF_.otf’)
This code describes to WordPress the location of the file and folder where the custom font specifications are residing in your WordPress theme files. Here I have created a custom folder named “custom-fonts” under the theme folder and have downloaded and installed the KARLOFF font-files there.
d.) format (“opentype”); – This last element make clear to WordPress about the format of the added font style. The most commonly used format types are – “opentype” for .otf & “truetype” for .ttf. Mention here the one corresponding to your font-type.
Change Font-Family in standard CSS
So after completing the above steps successfully you are done with Custom font installation in your WordPress which is now ready to be used. Now you just have to specify the name of this font in Standard CSS “font-family” selector which I have described in very starting of this post.
Now replace name of the existing font-family in CSS code below with the name of the new font you just added:
#site-title a {font-family:Karloff; }
Hence your new font is now ready to work and provide attractive look to your posts.
Hope you have liked the tutorial. If you still have any confusion or suggestion or feedback then please don’t forget to leave it in comment section below.





















Hy Saif
You have did a superb job by writing on this topic nice tips,and i must say it ll help newcomers.keep on doing.
Thank you.
Herbal incense wholesale invites you yo check..Herbal Incense Sticks and Their Usages
Hey Saif,
Excellent post. I have been looking to add custom fonts on my blog. You have given a nice information about it !

It is easy to use as well.
Web design Austin invites you yo check..Stay on Google’s Good Side
Hi,
I love the way of your writing style and your all post are really impressive and amazing.
Keep posting bro.
Thanks!
Hey,
This post is really fantastic .Saif excellent you have did a super job.
Thanks for the sharing.
Thank you for sharing this information as I was trying this and now I will get success in this.
Great article! Pushes me to stay focused on our core!
Hey,
This post is really fantastic .Saif excellent and super job.
Thanks for the sharing informational
free home business invites you yo check..You will have a Home Business: Some very nice Advice
Well most fount styles are used in logs and other sides but I think we better stick one arial style in postings.