• siamuc

    (@siamuc)


    Hi all,

    First, let me tell you that I am quite new to WP, so pardon any maybe stupid question ??
    Here in Europe, especially in Germany, you may not load Fonts directly from Google without the visitor’s consent – or simply download the fonts from Google and host them locally on your server.
    But I cannot find a way in WP Admin for this Twentytwelve theme, actually, I don’t have any font setting at all in WP Admin.

    I’m afraid, if I change it in the functions.php, it will be overwritten by the next update, isn’t it?

    Any suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • There is no option to check or enable this in this theme. However, with the following code snippet you can disable the integration:

    function custom_remove_fonts() {
     wp_dequeue_style('twentytwelve-fonts');
    }
    add_filter('wp_enqueue_scripts', 'custom_remove_fonts');

    You would have to add that in a child theme or via code snippet plugin in your plugin.

    Hi @siamuc

    But I cannot find a way in WP Admin for this Twentytwelve theme, actually, I don’t have any font setting at all in WP Admin.

    With the Create Block Theme plugin?by?www.ads-software.com you can manage the fonts you have on the Twenty Twenty-Three theme.

    When you install and activate the plugin kindly go to Appearance > Manage theme fonts. On that page you can see all the font families on your site, you can remove any fonts from there as shown in this screenshot below.

    I am not sure which font you want to remove exactly, however, from the defaults, the DM Sans font family is being commissioned by Google.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Load Google Fonts locally’ is closed to new replies.