• Resolved scott_ease

    (@scott_ease)


    Greetings-
    In order to remove google fonts, I add following codes to the child theme:

    function doctorial_child_scripts() {
    wp_dequeue_style( ‘doctorial-google-fonts’ );
    }
    add_action( ‘wp_enqueue_scripts’, ‘doctorial_child_scripts’ );

    I cannot make it work. Please help.
    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Maharjan Rajan

    (@rajanamaharjan45)

    Hi @scott_ease
    Please add code given below inside after theme setup function.

    wp_dequeue_style( ‘doctorial-google-fonts’ );

    Thank you!!

    Thread Starter scott_ease

    (@scott_ease)

    My goal is to keep parent theme intact, and dequeue google fonts from child theme.
    Is it possible?

    Currently I commented out line 163 of functions.php file from parent theme.
    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dequeue google fonts’ is closed to new replies.