• Resolved Anonymous User 14432102

    (@anonymized-14432102)


    Hi,

    I was wondering if there is a way to completely disable Google Fonts and any calls to the those servers. I’m not sure where the fonts are called/coded in the theme.

    Thanks again for a great theme.
    Best wishes,
    Rob

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi again, @betheroots:

    I have the same issue as you. I’m serving the fonts locally, which are already installed on a folder of my child theme. But I can’t disable the call to Google Fonts.

    Line 79 on functions.php creates the wp_enqueue_style of Google Fonts. I’ve been trying to disable it with several methods, like this:

    // Desactivar Google Fonts
    add_action( 'wp_enqueue_styles', 'dequeue_hamilton_fonts' );
    function dequeue_hamilton_fonts() {
          wp_dequeue_style( 'hamilton-fonts' );
    }

    And borrow it from the codex: wp_deregister_style and wp_deregister_style. None of both work.

    The temporal solution that I found is to turn to ‘off’ the setting on the functions.php of Hamilton, which will be lost on the next update.

    If you have already the solution, it would be appreciate if you reply with it. If not, we’ll wait for the solution.

    Greetings ??

    Thread Starter Anonymous User 14432102

    (@anonymized-14432102)

    Hi @myanesp

    Thanks for your reply. I’m not actually using the theme anymore but I think at the time I just ended up installing a plugin to disable any calls to Google servers.

    Cheers,
    Rob

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