<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WPWife &#187; omgf plugin</title>
	<atom:link href="http://www.wpwife.com/category/omgf-plugin/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wpwife.com</link>
	<description>WPHelp: fix and optimise WP themes&#38;plugins</description>
	<lastBuildDate>Fri, 21 Nov 2025 12:00:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.38</generator>
	<item>
		<title>How to Host Local Fonts in WordPress for a Faster Website</title>
		<link>http://www.wpwife.com/tutorials/how-to-host-local-fonts-in-wordpress-for-a-faster-website</link>
		<comments>http://www.wpwife.com/tutorials/how-to-host-local-fonts-in-wordpress-for-a-faster-website#comments</comments>
		<pubDate>Wed, 04 Jan 2023 10:24:00 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[google fonts in wordpress]]></category>
		<category><![CDATA[host local fonts]]></category>
		<category><![CDATA[omgf plugin]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[wordpress gdpr compliance]]></category>

		<guid isPermaLink="false">https://www.wpbeginner.com/?p=142836</guid>
		<description><![CDATA[
<p>Do you want to add third-party fonts to your website without slowing down your website speed? Custom fonts improve the typography and user experience of your website, but they take longer to load. The good news is that you can host your fonts locally to&#8230;&#160;<strong><a href="https://www.wpbeginner.com/wp-tutorials/how-to-host-local-fonts-in-wordpress-for-a-faster-website/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-host-local-fonts-in-wordpress-for-a-faster-website/">How to Host Local Fonts in WordPress for a Faster Website</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Do you want to add third-party fonts to your website without slowing down your website speed?</p>



<p>Custom fonts improve the typography and user experience of your website, but they take longer to load. The good news is that you can host your fonts locally to ensure your website is always fast.</p>



<p>In this article, we’ll show you how to host local fonts in WordPress.</p>



<figure class="wp-block-image size-full"><img width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2022/09/how-to-host-local-fonts-in-wordpress-for-a-faster-website-og.png" alt="How to Host Local Fonts in WordPress for a Faster Website" class="wp-image-143841" srcset="https://www.wpbeginner.com/wp-content/uploads/2022/09/how-to-host-local-fonts-in-wordpress-for-a-faster-website-og.png 680w, https://www.wpbeginner.com/wp-content/uploads/2022/09/how-to-host-local-fonts-in-wordpress-for-a-faster-website-og-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4>Why Host Fonts Locally in WordPress?</h4>



<p>While typography and <meta charset="utf-8"><a title="How to Add Custom Fonts in WordPress" href="https://www.wpbeginner.com/wp-themes/how-to-add-custom-fonts-in-wordpress/">custom fonts</a> can improve the overall website aesthetics, they do have a negative impact on your <meta charset="utf-8"><a title="24 Tips to Speed Up WordPress Performance (UPDATED)" href="http://www.wpbeginner.com/wordpress-performance-speed/">WordPress performance</a>. For example, if you are using a custom font from Google fonts, then they&#8217;re loaded from third-party services which will slow down your website.</p>



<p>Luckily, there is a way to use custom fonts without slowing down your site. A new Webfonts API was introduced in <a title="What’s New in WordPress 6.0 (Features and Screenshots)" href="https://www.wpbeginner.com/news/whats-new-in-wordpress-6-0-features-and-screenshots/">WordPress 6.0</a>. This allows you to host fonts locally so they load faster.</p>



<p>Another reason to host Google Fonts locally is to <a title="The Ultimate Guide to WordPress and GDPR Compliance – Everything You Need to Know" href="https://www.wpbeginner.com/beginners-guide/the-ultimate-guide-to-wordpress-and-gdpr-compliance-everything-you-need-to-know/">stay GDPR compliant</a>. That’s an important legal consideration if you have website visitors from the European Union.</p>



<p>When someone visits a website that uses Google Fonts, their IP address is logged by Google when the fonts are loaded. Because this is done without their permission, the EU now considers that a breach of privacy regulations, and you may be liable for damages.</p>



<p>That being said, let’s take a look at how to host local fonts in WordPress for a faster website. We&#8217;ll cover two methods, and the first method is recommended for most users.</p>



<div class="wp-block-aioseo-table-of-contents"><ul><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-host-local-fonts-in-wordpress-for-a-faster-website/#aioseo-method-1-hosting-local-fonts-in-wordpress-with-a-plugin">Method 1: Hosting Local Fonts in WordPress With a Plugin</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-host-local-fonts-in-wordpress-for-a-faster-website/#aioseo-method-1-hosting-local-fonts-in-wordpress-with-a-plugin">Method 2: Hosting Local Fonts in WordPress Manually</a></li></ul></div>



<h4 id="aioseo-method-1-hosting-local-fonts-in-wordpress-with-a-plugin">Method 1: Hosting Local Fonts in WordPress With a Plugin</h4>



<p>The first thing you need to do is install and activate the <a href="https://wordpress.org/plugins/host-webfonts-local/"  rel="noreferrer noopener nofollow" title="OMGF | GDPR Compliant, Faster Google Fonts. Easy.">OMGF</a> (Optimize My Google Fonts) plugin. For more details, see our step-by-step guide on <a title="Step by Step Guide to Install a WordPress Plugin for Beginners" href="https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/">how to install a WordPress plugin</a>.</p>



<p>OMGF is one of the best <a title="16 Best WordPress Typography Plugins to Improve Your Design" href="https://www.wpbeginner.com/showcase/best-wordpress-typography-plugins-to-improve-your-design/">WordPress typography plugins</a>. It offers a beginner-friendly way to improve performance and GDPR compliance by hosting Google Fonts locally.</p>



<p>Upon activation, you need to visit <strong>Settings » Optimize Google Fonts</strong> to configure the plugin. You should be looking at the ‘Optimize Fonts’ tab.</p>



<p>Notice the statement under the ‘Optimize Google Fonts’ heading that you just need to use the default settings to automatically replace your Google Fonts with locally hosted copies.</p>



<figure class="wp-block-image size-full"><img width="680" height="382" src="https://www.wpbeginner.com/wp-content/uploads/2022/09/localfontsomgfsettings.png" alt="OMGF Settings" class="wp-image-142837" srcset="https://www.wpbeginner.com/wp-content/uploads/2022/09/localfontsomgfsettings.png 680w, https://www.wpbeginner.com/wp-content/uploads/2022/09/localfontsomgfsettings-300x169.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>That means that as you scroll down the settings page, all you need to do is make sure that the &#8216;Font-Display Option&#8217; has the default setting of ‘Swap (recommended)’ selected.</p>



<p>All you need to do now is click the ‘Save &amp; Optimize’ button at the bottom of the page.</p>



<figure class="wp-block-image size-full"><img width="680" height="196" src="https://www.wpbeginner.com/wp-content/uploads/2022/09/localfontssaveoptimize.png" alt="Click the Save &amp; Optimize Button" class="wp-image-142838" srcset="https://www.wpbeginner.com/wp-content/uploads/2022/09/localfontssaveoptimize.png 680w, https://www.wpbeginner.com/wp-content/uploads/2022/09/localfontssaveoptimize-300x86.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You&#8217;ll see a message at the top of the screen that says ‘Optimization completed successfully.’</p>



<p>Congratulations! Your Google Fonts are now hosted locally. Your website will load faster and you have reduced the risk of European lawsuits.</p>



<h4 id="aioseo-method-1-hosting-local-fonts-in-wordpress-with-a-plugin">Method 2: Hosting Local Fonts in WordPress Manually</h4>



<p>You can also host fonts locally without using a plugin by using the @font-face method from our guide on <a href="https://www.wpbeginner.com/wp-themes/how-to-add-custom-fonts-in-wordpress/#Adding-Custom-Fonts-in-WordPress-Using-CSS3-font-face" title="How to Add Custom Fonts in WordPress">how to add custom fonts in WordPress</a>. While this method requires more work, it allows you to use any font that you like on your website.</p>



<p>You need to download the fonts you wish to use in a web format. There are many places to find great free web fonts, such as&nbsp;Google Fonts,&nbsp;Typekit,&nbsp;FontSquirrel, and more.</p>



<figure class="wp-block-image size-full"><img width="680" height="292" src="https://www.wpbeginner.com/wp-content/uploads/2022/10/localfontsdownload.png" alt="Downloading a Google Font" class="wp-image-150460" srcset="https://www.wpbeginner.com/wp-content/uploads/2022/10/localfontsdownload.png 680w, https://www.wpbeginner.com/wp-content/uploads/2022/10/localfontsdownload-300x129.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>If you do not have the web format for your font, then you can convert it using the&nbsp;<a href="http://www.fontsquirrel.com/tools/webfont-generator"  rel="noopener nofollow" title="Webfont Generator">FontSquirrel Webfont generator</a>.</p>



<p>Now you need to store the fonts on your&nbsp;<a href="https://www.wpbeginner.com/wordpress-hosting/" title="How to Choose the Best WordPress Hosting in 2020 (Compared)">WordPress hosting</a>&nbsp;server. You can <a href="https://www.wpbeginner.com/beginners-guide/how-to-use-ftp-to-upload-files-to-wordpress-for-beginners/" title="How to use FTP to upload files to WordPress for Beginners">upload the files using FTP</a>&nbsp;or using your host’s cPanel File Manager.</p>



<p>You should create a new folder called ‘fonts’ in the directory of your theme or&nbsp;<a href="https://www.wpbeginner.com/wp-themes/how-to-create-a-wordpress-child-theme-video/" title="How to Create a WordPress Child Theme">child theme</a> and upload it there.</p>



<figure class="wp-block-image size-full"><img width="680" height="316" src="https://www.wpbeginner.com/wp-content/uploads/2022/10/localfontsfilemanageruploadfonts.png" alt="Upload the Fonts to Your Website" class="wp-image-150462" srcset="https://www.wpbeginner.com/wp-content/uploads/2022/10/localfontsfilemanageruploadfonts.png 680w, https://www.wpbeginner.com/wp-content/uploads/2022/10/localfontsfilemanageruploadfonts-300x139.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Once you have uploaded the font, you need to load the font in your theme’s stylesheet using <a href="https://www.wpbeginner.com/plugins/how-to-easily-add-custom-css-to-your-wordpress-site/" title="How to Easily Add Custom CSS to Your WordPress Site">custom CSS</a>. You can add the code directly to your theme’s style.css file, or by using the Additional CSS section of the <a href="https://www.wpbeginner.com/beginners-guide/how-to-use-wordpress-theme-customizer/" title="How to Use WordPress Theme Customizer Like a Pro (Ultimate Guide)">theme customizer</a>.</p>



<p>You can do that using CSS3 @font-face rule like this:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: css; title: ; notranslate">
@font-face {
    font-family: Arvo;
    src: url(http://example.com/wp-content/themes/twentytwentyone/fonts/Arvo-Regular.ttf);
    font-weight: normal;
}
</pre></div>


<p>Don’t forget to replace the font family and URL with your own.</p>



<p>After that, you can use that font anywhere in your theme’s stylesheet or the Additional CSS section of the theme customizer. The CSS you use will depend on your theme and where you wish to use the local font. Here&#8217;s an example from our demo website:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: css; title: ; notranslate">
h1 {
font-family: Arvo, Arial, sans-serif;
}
</pre></div>


<p>As you can see, our heading is now using the locally hosted Arvo font.</p>



<figure class="wp-block-image size-full"><img width="680" height="249" src="https://www.wpbeginner.com/wp-content/uploads/2022/10/localfontsthemecustomizer.png" alt="Adding Custom CSS With the Theme Customizer" class="wp-image-150465" srcset="https://www.wpbeginner.com/wp-content/uploads/2022/10/localfontsthemecustomizer.png 680w, https://www.wpbeginner.com/wp-content/uploads/2022/10/localfontsthemecustomizer-300x110.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>We hope this tutorial helped you learn how to host local fonts in WordPress for a faster website. You may also want to learn <a href="https://www.wpbeginner.com/beginners-guide/how-to-increase-your-blog-traffic/" title="How to Increase Your Blog Traffic – The Easy Way (27 Proven Tips)">how to increase your blog traffic</a>, or check out our list of <a title="24 &quot;Must Have&quot; WordPress Plugins &amp; Tools for Business Sites" href="https://www.wpbeginner.com/showcase/24-must-have-wordpress-plugins-for-business-websites/">must have WordPress plugins to grow your site</a>.</p>



<p>If you liked this article, then please subscribe to our <a href="https://youtube.com/wpbeginner?sub_confirmation=1"  rel="noreferrer noopener nofollow" title="Subscribe to WPBeginner YouTube Channel">YouTube Channel</a> for WordPress video tutorials. You can also find us on <a href="https://twitter.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Follow WPBeginner on Twitter">Twitter</a> and <a href="https://facebook.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Join WPBeginner Community on Facebook">Facebook</a>.</p><p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-host-local-fonts-in-wordpress-for-a-faster-website/">How to Host Local Fonts in WordPress for a Faster Website</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/tutorials/how-to-host-local-fonts-in-wordpress-for-a-faster-website/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
	</channel>
</rss>
