• Resolved stevespeirs

    (@stevespeirs)


    Is it possible to completely remove Google fonts from the Astrid theme?

    I removed the reference to Google fonts at Appearance | Customize | Fonts, but I’m still seeing the fonts on the website.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @stevespeirs,

    Thank you for contacting us. I am happy to help with your queries.

    You’re right, Google Fonts URLs still load on the site when there are no fonts selected in Customizer.

    To remove fonts URLs, try adding this function to a child theme’s functions.

    function astrid_child_remove_google_fonts() {
    
       wp_dequeue_style( 'astrid-body-fonts' );
       wp_dequeue_style( 'astrid-headings-fonts' );
    
    }
    add_action( 'wp_enqueue_scripts', 'astrid_child_remove_google_fonts', 99999 );

    Or use Code Snippets to apply the code without child theme.

    Hope that helps.

    Regards,
    Kharis

    Thread Starter stevespeirs

    (@stevespeirs)

    Thank you. That worked!

    You’re welcome @stevespeirs!

    Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

    Regards,
    Kharis

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