{"id":12068,"date":"2024-02-15T10:24:00","date_gmt":"2024-02-15T10:24:00","guid":{"rendered":"https:\/\/www.20i.com\/blog\/?p=12068"},"modified":"2026-01-08T12:55:52","modified_gmt":"2026-01-08T12:55:52","slug":"how-to-use-custom-fonts-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.20i.com\/blog\/how-to-use-custom-fonts-in-wordpress\/","title":{"rendered":"How to use Custom Fonts in WordPress"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">WordPress comes with a range of fonts that are ready for web designers to use. With an estimated 43% of all websites (around 810 million at the time of writing) built on the platform, using different fonts can help your website to stand out.\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Custom fonts enable you to better establish the identity of your brand, increase readability and make for an overall better and more unique experience for your visitors.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this guide, we will be taking a look at several ways of installing custom fonts onto your website so that you can choose what method works best for you.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Find custom fonts to use in WordPress<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress themes do not contain all fonts in existence. There are, however, various free and paid sources you can use to get the fonts that you need into WordPress, the main two being <a href=\"https:\/\/fonts.google.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Google<\/a> and <a href=\"https:\/\/fonts.adobe.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Adobe<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Google Fonts<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Beginners and experienced users alike utilise Google Fonts as they are quick and easy to get up and running.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Other benefits include the wide variety of fonts, performance (fonts are served from Google&#8217;s servers and fast content delivery helps SEO), they are updated regularly and, perhaps most attractively of all, they are open source and free to use!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Adding Google Fonts To WordPress Using a Plugin<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">As with most things WordPress related &#8211; there is a plugin for that. In this case, it called <a href=\"https:\/\/wordpress.org\/plugins\/olympus-google-fonts\/\" target=\"_blank\" rel=\"noreferrer noopener\">Google Fonts Typography<\/a> by Fonts Plugin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To install the plugin, log into your WordPress website via wp-admin. After you are signed in an at the main WordPress menu you\u2019ll need to hover your mouse cursor above where it says \u201cPlugins\u201d in the menu on the left, and click on \u201cAdd New Plugin\u201d.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Add New Plugin screen should load after a few seconds. Type \u201cGoogle Fonts Typography\u201d into the search bar in the top right and you should see the plugin appear as the first result.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Click \u201cInstall Now\u201d then press the&nbsp; \u201cActivate\u201d button. Once the plugin is activated a \u201cFonts Plugin\u201d item will appear in the menu on the left. Click \u201cCustomize Fonts\u201d in the admin side bar.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"219\" height=\"212\" src=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/google-fonts-typography-ui.jpg\" alt=\"wordpress font plugins\" style=\"border: 3px solid #000000; padding: 3px; margin: 3px;\" class=\"wp-image-12086\" srcset=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/google-fonts-typography-ui.jpg 219w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/google-fonts-typography-ui-150x145.jpg.webp 150w\" sizes=\"auto, (max-width: 219px) 100vw, 219px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This will take you to the theme customiser in WordPress, and should open the Fonts Plugin section.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"368\" height=\"542\" src=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/google-fonts-typography-settings.jpg\" alt=\"wordpress font plugin menu\" style=\"border: 3px solid #000000; padding: 3px; margin: 3px;\" class=\"wp-image-12085\" srcset=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/google-fonts-typography-settings.jpg 368w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/google-fonts-typography-settings-204x300.jpg.webp 204w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/google-fonts-typography-settings-150x221.jpg.webp 150w\" sizes=\"auto, (max-width: 368px) 100vw, 368px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Clicking \u201cBasic Settings\u201d will allow you to change the default fonts for your website. \u201cAdvanced Settings\u201d lets you change fonts for specific areas.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Basic Settings<\/strong>&nbsp;<br>Basic settings let you change the font for your Headings, Buttons and written content.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The drop-down menus under \u201cFont Family\u201d gives you a list of fonts to choose, with your current default font at the top of the list.&nbsp; After choosing a font, you will see a preview.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"362\" height=\"634\" src=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/font-family-selection-ui.jpg\" alt=\"\" style=\"border: 3px solid #000000; padding: 3px; margin: 3px;\" class=\"wp-image-12084\" srcset=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/font-family-selection-ui.jpg 362w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/font-family-selection-ui-171x300.jpg.webp 171w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/font-family-selection-ui-150x263.jpg.webp 150w\" sizes=\"auto, (max-width: 362px) 100vw, 362px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Advanced Settings<\/strong><br>Advanced Settings presents the same options as Basic Settings but broken down into more granular options, so you can fine tune your selections.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"345\" height=\"428\" src=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/google-fonts-typography-advanced-settings.jpg\" alt=\"wordpress font plugin settings\" style=\"border: 3px solid #000000; padding: 3px; margin: 3px;\" class=\"wp-image-12083\" srcset=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/google-fonts-typography-advanced-settings.jpg 345w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/google-fonts-typography-advanced-settings-242x300.jpg.webp 242w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/google-fonts-typography-advanced-settings-150x186.jpg.webp 150w\" sizes=\"auto, (max-width: 345px) 100vw, 345px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Here is a brief description for each option:&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Branding <\/strong>\u2014 Change the font of your site title and description.&nbsp;<br><strong>Navigation <\/strong>\u2014 Configure the typography of navigation menus.&nbsp;<br><strong>Content <\/strong>\u2014 Make changes to your content typography as well as each of the heading tags<br><strong>Sidebar <\/strong>\u2014 Font controls for sidebar headings and content.&nbsp;<br><strong>Footer <\/strong>\u2014 Font control for sidebar headings and content the site footer.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can choose which font you\u2019d like to use by selecting the font from the drop-down menu. When you\u2019re happy with your choices, you can then click \u201cPublish\u201d for your changes to go live.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Adding Google Fonts manually<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In this example, we will cover downloading a font from Google\u2019s font library, uploading it to your website and modifying your WordPress theme files so that they use the new font.&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use this link to go to the <a href=\"https:\/\/fonts.google.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Google Fonts<\/a> library. Find and click on the font you want to use. The Type Tester will load. This tool lets you preview and try different weights (thicknesses) within the font family that you chose.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Some fonts have multiple weights, ranging from Light to Extra Bold. Other fonts have just a single weight.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When you have decided which weights to download: click the (+) symbol. You can select more than one weight at a time, which is ideal if you would like your website to use Bold, Light and Italic variations of a font.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"995\" height=\"168\" src=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/google-fonts-typography-add-weights.jpg\" alt=\"wordpress font weight examples\" style=\"border: 3px solid #000000; padding: 3px; margin: 3px;\" class=\"wp-image-12082\" srcset=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/google-fonts-typography-add-weights.jpg 995w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/google-fonts-typography-add-weights-300x51.jpg.webp 300w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/google-fonts-typography-add-weights-768x130.jpg.webp 768w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/google-fonts-typography-add-weights-400x68.jpg.webp 400w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/google-fonts-typography-add-weights-800x135.jpg.webp 800w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/google-fonts-typography-add-weights-832x140.jpg.webp 832w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/google-fonts-typography-add-weights-150x25.jpg.webp 150w\" sizes=\"auto, (max-width: 995px) 100vw, 995px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">With the font(s) selected, the website will generate the code that you will need to use in the WordPress CSS file.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"314\" height=\"970\" src=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/google-fonts-typography-css-generation.jpg\" alt=\"wordpress font playfair display\" style=\"border: 3px solid #000000; padding: 3px; margin: 3px;\" class=\"wp-image-12081\" srcset=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/google-fonts-typography-css-generation.jpg 314w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/google-fonts-typography-css-generation-97x300.jpg.webp 97w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/google-fonts-typography-css-generation-150x463.jpg.webp 150w\" sizes=\"auto, (max-width: 314px) 100vw, 314px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Click the blue &#8220;Download all&#8221; button in the bottom right to download a zip file contains your font(s). Unzip the files and upload them to your theme directory using the File Manager in My20i or by FTP. If you do not already have a font directory, you can create this manually.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"453\" height=\"443\" src=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/my20i-file-manager-interface.jpg\" alt=\"my20i file manager managing fonts\" style=\"border: 3px solid #000000; padding: 3px; margin: 3px;\" class=\"wp-image-12080\" srcset=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/my20i-file-manager-interface.jpg 453w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/my20i-file-manager-interface-300x293.jpg.webp 300w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/my20i-file-manager-interface-400x391.jpg.webp 400w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/my20i-file-manager-interface-150x147.jpg.webp 150w\" sizes=\"auto, (max-width: 453px) 100vw, 453px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">With the font uploaded it is now time to modify your CSS and function.php files.&nbsp;&nbsp;<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>You can either modify the files via the file manager or via wp-admin &gt; Tools &gt; Theme File Editor.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"157\" height=\"284\" src=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/wordpress-theme-file-editor-menu-item.jpg\" alt=\"wordpress theme file editor\" style=\"border: 3px solid #000000; padding: 3px; margin: 3px;\" class=\"wp-image-12079\" srcset=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/wordpress-theme-file-editor-menu-item.jpg 157w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/wordpress-theme-file-editor-menu-item-150x271.jpg.webp 150w\" sizes=\"auto, (max-width: 157px) 100vw, 157px\" \/><\/figure>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>Add this to code to the top or bottom of your CSS file:&nbsp;<br>&nbsp;<br><code>@font-face {font-family: <strong>your-font<\/strong>; src: url(https:\/\/<strong>domain.com\/path\/to\/your\/font\/file<\/strong>); font-weight: normal;}&nbsp;<\/code><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Replace the bits in bold with the name of the font you want to use and the URL path with where you stored the font on your website. You can get the font family information from where you downloaded the font file.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"310\" height=\"152\" src=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/wordpress-theme-font-css-snippet.jpg\" alt=\"wordpress css rules\" style=\"border: 3px solid #000000; padding: 3px; margin: 3px;\" class=\"wp-image-12078\" srcset=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/wordpress-theme-font-css-snippet.jpg 310w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/wordpress-theme-font-css-snippet-300x147.jpg.webp 300w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/wordpress-theme-font-css-snippet-150x74.jpg.webp 150w\" sizes=\"auto, (max-width: 310px) 100vw, 310px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You can specify where you would like your font to take effect. In my example, I\u2019ve specified the \u2018h1\u2019 tag&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>h1 {font-family: 'Playfair Display', serif;}&nbsp;<\/code><\/p>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>Modify the themes functions.php file by adding this code:<br><br><code>function enqueue_custom_styles()<br>{&nbsp;wp_enqueue_style('custom-fonts', get_stylesheet_uri() );&nbsp;}&nbsp;<br>add_action('wp_enqueue_scripts', 'enqueue_custom_styles');&nbsp;<\/code><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Adding this code will include the &#8220;style.css&#8221; file (which includes the styling rules for the font we want to use) when a user visits the front end of the WordPress site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>wp_enqueue_style<\/code> is a WordPress function used to enqueue stylesheets. In this case, it&#8217;s being used to enqueue a stylesheet named &#8220;custom-fonts&#8221;. The <code>get_stylesheet_uri()<\/code> function handles the URL of the main theme\u2019s style.css file.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Save the changes and check your website. Be sure to clear your browsers cookies and cache. You should see your new font take effect on the website.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"810\" height=\"297\" src=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/google-fonts-typography-example.jpg\" alt=\"sample page\" style=\"border: 3px solid #000000; padding: 3px; margin: 3px;\" class=\"wp-image-12077\" srcset=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/google-fonts-typography-example.jpg 810w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/google-fonts-typography-example-300x110.jpg.webp 300w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/google-fonts-typography-example-768x282.jpg.webp 768w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/google-fonts-typography-example-400x147.jpg.webp 400w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/google-fonts-typography-example-800x293.jpg.webp 800w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/google-fonts-typography-example-150x55.jpg.webp 150w\" sizes=\"auto, (max-width: 810px) 100vw, 810px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Use Google Font API<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Using Google Font API externally is another quick and easy way of getting custom fonts on your website. The benefits of this method are that you don\u2019t need to download and then upload font files to your website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Calling directly to Google\u2019s API will give you the most up to date style sheets and Google\u2019s servers are fast, so page content will be delivered very quickly.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here are a few ways you do can do this:&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Using wp_enqueue _style (recommended)<\/strong>&nbsp;<br>The WordPress function <code>wp_enqueue _style<\/code> is performant, allows for asynchronous loading and aligns with WordPress\u2019s architecture.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Below you will see how we have enqueued the stylesheet for the Google Fonts API. It uses the handle &#8216;fonts&#8217;, and the second parameter is the URL of the Google Fonts stylesheet.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>function my_theme_enqueue_styles() {&nbsp;<br>wp_enqueue_style( 'my_theme_style', get_stylesheet_uri() );&nbsp;<br>wp_enqueue_style('fonts', 'https:\/\/fonts.googleapis.com\/css2?family=Roboto:ital,wght@1,100;1,400&amp;display=swap');&nbsp;}<br>add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );&nbsp;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Use \u2018@import url\u2019 via your websites CSS file<\/strong>&nbsp;<br>Outside of using a plugin; this is the easiest method as you can add it directly to your CSS file and there is no need to understand WordPress functions or modify PHP file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The drawback is that it is the least performant. This is because the browser fetches the imported stylesheets sequentially &#8211; every imported stylesheet must be loaded and processed before the browser moves onto the next, which results in slower page speed load times.&nbsp;<br>&nbsp;<br>To use this method; add this line of code (replacing the URL with your desired font\u2019s URL) to your themes CSS file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>@import url('https:\/\/fonts.googleapis.com\/css2?family=Playfair+Display:ital@1&amp;display=swap');&nbsp;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can find the <code>@import<\/code> code from the Google Fonts library, where you selected the Font style.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"320\" height=\"303\" src=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/google-fonts-typography-css-import-code.jpg\" alt=\"import code from google fonts\" style=\"border: 3px solid #000000; padding: 3px; margin: 3px;\" class=\"wp-image-12076\" srcset=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/google-fonts-typography-css-import-code.jpg 320w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/google-fonts-typography-css-import-code-300x284.jpg.webp 300w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/google-fonts-typography-css-import-code-150x142.jpg.webp 150w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Remember <\/strong>update your themes CSS file to specify the font that you would like to use i.e&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>h1 {font-family: 'Roboto', serif;}&nbsp;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For optimal performance and flexibility, it&#8217;s recommended to use <code>wp_enqueue_style<\/code> to include external stylesheets in WordPress themes. While <code>@import<\/code> is simpler, it may not offer the same level of performance optimisations.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Adobe Fonts<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Adding Adobe fonts into WordPress is similar to adding Google fonts using the methods above. The main difference is that you need to sign up to <a href=\"https:\/\/fonts.adobe.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Adobe Fonts<\/a> before you can select a font from the library.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Another significant difference is that not all fonts that you will see on Adobe Fonts are free and open source.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To manually embed the font into your website, select the option \u201cAdd to Web project\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"999\" height=\"218\" src=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/adobe-fonts-add-family-interface.jpg\" alt=\"noto sans georgian\" style=\"border: 3px solid #000000; padding: 3px; margin: 3px;\" class=\"wp-image-12075\" srcset=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/adobe-fonts-add-family-interface.jpg 999w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/adobe-fonts-add-family-interface-300x65.jpg.webp 300w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/adobe-fonts-add-family-interface-768x168.jpg.webp 768w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/adobe-fonts-add-family-interface-400x87.jpg.webp 400w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/adobe-fonts-add-family-interface-800x175.jpg.webp 800w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/adobe-fonts-add-family-interface-832x182.jpg.webp 832w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/adobe-fonts-add-family-interface-150x33.jpg.webp 150w\" sizes=\"auto, (max-width: 999px) 100vw, 999px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you do not already have a project, you can create a new one:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"584\" height=\"584\" src=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/adding-adobe-fonts-to-a-web-project.jpg\" alt=\"\" style=\"border: 3px solid #000000; padding: 3px; margin: 3px;\" class=\"wp-image-12074\" srcset=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/adding-adobe-fonts-to-a-web-project.jpg 584w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/adding-adobe-fonts-to-a-web-project-300x300.jpg.webp 300w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/adding-adobe-fonts-to-a-web-project-150x150.jpg.webp 150w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/adding-adobe-fonts-to-a-web-project-400x400.jpg.webp 400w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/adding-adobe-fonts-to-a-web-project-96x96.jpg.webp 96w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After clicking \u201cCreate\u201d you will be given the code to copy into your website.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"575\" height=\"640\" src=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/adobe-fonts-css-code-snippet.jpg\" alt=\"add fonts to a web project\" style=\"border: 3px solid #000000; padding: 3px; margin: 3px;\" class=\"wp-image-12087\" srcset=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/adobe-fonts-css-code-snippet.jpg 575w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/adobe-fonts-css-code-snippet-270x300.jpg.webp 270w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/adobe-fonts-css-code-snippet-400x445.jpg.webp 400w, https:\/\/www.20i.com\/blog\/wp-content\/smush-webp\/2024\/02\/adobe-fonts-css-code-snippet-150x167.jpg.webp 150w\" sizes=\"auto, (max-width: 575px) 100vw, 575px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You then have the option to use <code>&lt;link rel= href \"https:\/\/use.typkit.net\/fontid.css\"<\/code> or <code>import @url<\/code>.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As with Google fonts, you can use the Adobe Font API URL in your <code>wp_enqueue_style<\/code> code and add the font family into your CSS file. Alternatively, you can add the \u201c<code>import URL<\/code>\u201d code to your CSS file.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Final thoughts<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In this article, we explored several different ways of adding custom fonts into WordPress, staring with using a simple plugin and moving onto adding them manually and using APIs.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The easiest method is to use a plugin. Better performance and flexibility can be achieved using the advanced method and modifying your functions.php file using <code>wp_enqueue_style<\/code> function.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you\u2019re not comfortable modifying your websites PHP code, you can experiment on a fresh WordPress install.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I hope that you found this guide to be useful. Please feel free to share it with anyone you know that needs it and, if you know of any other methods of getting custom fonts onto your WordPress website \u2013 please let us know in the comments section!&nbsp;<\/p>\n\n\n<div class='code-block code-block-4' style='margin: 8px 0; clear: both;'>\n<hr>\n<br \/><a href=\"https:\/\/www.20i.com\/wordpress-hosting\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2026\/03\/Blog-Ad-WordPress-1200x625-1.png\" loading=\"lazy\" alt=\"Managed WordPress Hosting\"><\/a><\/div>\n\n","protected":false},"excerpt":{"rendered":"WordPress comes with a range of fonts that are ready for web designers to use. With an estimated&hellip;","protected":false},"author":25,"featured_media":12104,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"ub_ctt_via":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"csco_singular_sidebar":"","csco_page_header_type":"","csco_page_load_nextpost":"","footnotes":""},"categories":[60,293],"tags":[57,76],"class_list":["post-12068","post","type-post","status-publish","format-standard","has-post-thumbnail","category-web-design-dev","category-wordpress","tag-web-design","tag-wordpress","cs-entry"],"featured_image_src":"https:\/\/www.20i.com\/blog\/wp-content\/uploads\/2024\/02\/How-to-use-custom-fonts-in-wordpress.png","author_info":{"display_name":"Ben Perry","author_link":"https:\/\/www.20i.com\/blog\/author\/benperry92\/"},"_links":{"self":[{"href":"https:\/\/www.20i.com\/blog\/wp-json\/wp\/v2\/posts\/12068","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.20i.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.20i.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.20i.com\/blog\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/www.20i.com\/blog\/wp-json\/wp\/v2\/comments?post=12068"}],"version-history":[{"count":14,"href":"https:\/\/www.20i.com\/blog\/wp-json\/wp\/v2\/posts\/12068\/revisions"}],"predecessor-version":[{"id":18178,"href":"https:\/\/www.20i.com\/blog\/wp-json\/wp\/v2\/posts\/12068\/revisions\/18178"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.20i.com\/blog\/wp-json\/wp\/v2\/media\/12104"}],"wp:attachment":[{"href":"https:\/\/www.20i.com\/blog\/wp-json\/wp\/v2\/media?parent=12068"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.20i.com\/blog\/wp-json\/wp\/v2\/categories?post=12068"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.20i.com\/blog\/wp-json\/wp\/v2\/tags?post=12068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}