Page 1 of 1

How to Add Custom Fonts to WordPress

Posted: Sun Jan 19, 2025 4:30 am
by shukla7789
Creativemotions»WordPress Tips & Guides»How to Add Custom Fonts to WordPress

How to Add Custom Fonts to WordPress
There are countless ways to make your WordPress site more appealing to your users. One of them is adding custom fonts.

However, WordPress font choices can be limited and theme-dependent. In this article, you will learn how to add custom fonts to WordPress both manually and using plugins.

Table of Contents view
Where to download fonts for WordPress?
There are many sites where you can find free web fonts and cameroon phone number data Squirrel is one of them. You can easily find free fonts that are licensed for commercial work. In addition to that, Google Fonts has over 900 font families and Edge web Fonts, provided by Adobe, offers a large collection of web fonts.

If you're looking for something more suitable for personal use, check out sites like Fonts.com , Dafont , and 1001 free fonts .

Converting fonts to a web-compatible format
It is worth noting that not all web browsers support custom fonts. However, even if the font you choose is not supported, you can still convert it to a compatible format.

Before we convert fonts from one format to another, let's take a quick look at the different font formats:

Open Type Fonts (OTF) - The most commonly used web fonts and are a registered trademark of Microsoft. This format works well with almost all major browsers.
True Type Fonts (TTF) – developed by Microsoft and Apple in 1980. Widely used for both Windows and macOS.
web Open Font Format (WOFF): a widely used format for web pages and recommended by the World Wide Web Consortium (W3C).
WOFF 2.0 – considered a better option than WOFF 1.0 due to its better compression capabilities. This format is not supported by Safari and Internet Explorer, but works well with Google Chrome, Firefox or Opera.
Embedded OpenType Fonts (EOF): More compact OTF fonts, used as embedded fonts in web pages. All major browsers support EOF.
If you are not sure whether your font is compatible with your default browser, use the Web Font Generator . This tool allows you to easily convert almost any font into a web-friendly format:

Go to webfont Generator .
Click the Upload Fonts button and choose a font you want to convert,
Check the box in the Agreement section to indicate that your fonts are legally eligible for web embedding.
Press the Download your kit button and save the .zip archive to your computer.
Inside the archive, you will find fonts in WOFF and WOFF 2.0 format along with CSS files and demo HTML page .
web font generator
How to add custom fonts to WordPress?
Here’s how you can add custom fonts to WordPress, either manually or using plugins.

How to Manually Add Fonts to WordPress
If you don't want to overload your WordPress with too many plugins, you can manually add fonts to your website. You need to upload your font to your hosting account and edit your theme's CSS file.

You need to download the font you want to use to your computer and extract the .zip archive .

Upload your font file to the wp-content/themes/your-theme/fonts directory. Create a separate fonts folder if you don’t have one yet. You can use an FTP client like FileZilla or cPanel ’s File Manager for this task. In our example, we uploaded the AguafinaScript-Regular.ttf font using the File Manager in cPanel.

Go to your WordPress admin area. Then, go to Appearance -> Theme Editor . You will be presented with the style.css file . Scroll down and add the following code: