Confirm that the files you’re uploading are in the. In this case you don’t have to enqueue the fonts in the functions.php file as you did with the web fonts.
INHERIT FONT FOR WORDPRESS HOW TO
How to Change Fonts in WordPress by Hosting Fonts If there are issues, they’ll see the backup fonts, for example Arial or Times New Roman in our case. If all is well, your site’s visitors will see your default web fonts, in our case Work Sans and Cambria. To do this, go to the stylesheet and edit the CSS to read as follows:įont-family: ‘Work Sans’, Arial, sans-serif įont-family: ‘Cambria’, Times New Roman, serif Have a backup font in place to ensure that the fonts can be rendered or accessed easily especially for users with old devices, poor connections, or if the font provider has technical issues.
If not, check that the fonts aren’t being overridden in the stylesheet, or clear your browser cache and try again. Once done, save the stylesheet and check whether your fonts are working as they should. In this case, the main font will be Work Sans while header elements like h1, h2, and h3 will use Cambria.