Posted on Leave a comment

How to put back missing Google Fonts I choose from my WordPress website?

Modern WordPress themes usually allow us to choose Google font from a list of available Google Fonts directly from customizer or theme/plugin’s settings panel. However, there is a possibility the selected fonts are no longer working due to version update or any other reason.

You can use this snippet to manualy call your chosen fonts from Google Fonts service from your website directly. Add it into child theme’s functions or use Code Snippets plugin if you don’t have an active child theme.

add_action('wp_head', function(){
    @import url('YOUR_GOOGLE_FONT_URL');
}, 3, 0);

Replace YOUR_GOOGLE_FONT_URL with a URL given by Google Fonts after you selected a font.

Leave a Reply

Your email address will not be published. Required fields are marked *