Error - by Kunstwerk - on WordPress WooCommerce support

This topic has 2 replies, 2 voices, and was last updated 4 years, 5 months ago ago by Olga Barlow

  • Avatar: Kunstwerk
    Kunstwerk
    Participant
    July 15, 2021 at 09:09

    Hi,

    I get this error:
    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘remove_google_fonts_stylesheet’ not found or invalid function name in /home/u31614p47200/domains/kunstwerkopschool.nl/public_html/wp-includes/class-wp-hook.php on line 292

    can you fix this?

    with regard,

    Robert

    1 Answer
    Avatar: Olga Barlow
    Olga Barlow
    Participant
    July 15, 2021 at 12:07

    Hello,

    Error comes from your child theme code

    function wpse_dequeue_google_fonts() {
        wp_dequeue_style( 'rs-roboto-css' );
    }
    add_action( 'wp_enqueue_scripts', 'remove_google_fonts_stylesheet', 20 );
    
    function wpb_add_google_fonts() {
     
    wp_enqueue_style( 'wpb-google-fonts', 'https://fonts.googleapis.com/css?family=Lato:300italic,400italic,700italic,400,700,300', false ); 
    }
     
    add_action( 'wp_enqueue_scripts', 'wpb_add_google_fonts' );

    Contact author code. We are responsible for the parent theme code only.

    Regards

  • Viewing 2 results - 1 through 2 (of 2 total)

The issue related to '‘error’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.