Before you ask please READ THIS

Make Google Fonts local

in FatMoon Posts: 12
hello again,

i have put the google fonts locally, but how can i eleminate google web

thank you


  • AirAir
    Posts: 10,639
    Hey :-)

    Could you tell me more what approach have you used to make google font be local?
    Live link could help as we well.

    First thing you could use is disabling this option Customizing → Miscellaneous → Optimization → Use the web-font loading script

    With kind regards.
  • AirAir
    Posts: 10,639

    the option below is already deactivated

    there is a new folder with fonts (roboto) and fonts.css (root level)
    and this link in header.php

    this link must be removed

    thank you
    It is not real link, but instruction for the browser to create connection to this server for upcoming fonts. It is there for performance.
    Anyway we can clear it as you want :-)

    You can either remove this line from code in fatmoon\advance\utilities\core_fe.php line ~599

    add_filter( 'wp_resource_hints', 'apollo13framework_faster_google_fonts', 10, 2 );

    Or add such code to the child theme in function.php file:
    add_action('after_setup_theme', function(){
        remove_filter( 'wp_resource_hints', 'apollo13framework_faster_google_fonts', 10, 2 );
    With kind regards.
  • AirAir
    Posts: 10,639
    Hey Wolfgang

    Please login to the forum to reply as it seems, you are sending messages to not monitored e-mail and they are getting lost.

    With kind regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion