• Resolved tracikay

    (@tracikay)


    I am not seeing how to change the fonts using a child theme.

    I tried to follow your FAQ, but I don’t want to edit the parent functions.php file because I want to be able to update the theme easily.

    What is the best way to update the google fonts when using a child theme?

    Thank you in advance.

Viewing 1 replies (of 1 total)
  • Theme Author Anthony Hortin

    (@ahortin)

    You can dequeue my Google fonts in your child theme by adding the following in your child theme functions.php:

    function mytheme_dequeue_fonts() {
       wp_dequeue_style( 'quark-fonts' );
    }
    add_action( 'wp_enqueue_scripts', 'mytheme_dequeue_fonts', 11 );

    You can then add in your own fonts. You’ll obviously need to change the appropriate styles in your stylesheet as well.

Viewing 1 replies (of 1 total)

The topic ‘Change google font using child theme’ is closed to new replies.