Support » Theme: Sydney » Remove Sydney’s Google Fonts

  • Hi, I just wanted to post this in case someone needs it.

    I wanted to disable Sydney’s enqueued Google Fonts to make my website load faster. But I didn’t want to edit the parent functions.php file, because the changes would get overwritten when the theme is updated. I used the following code in my child theme’s functions.php and it worked:

    /* Dequeue Sydney Google fonts */
    
    function dequeue_sydney_google_fonts() {
        	wp_dequeue_style( 'sydney-body-fonts' );
        	wp_dequeue_style( 'sydney-headings-fonts' );
        }
        add_action( 'wp_enqueue_scripts', 'dequeue_sydney_google_fonts', 100 );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove Sydney’s Google Fonts’ is closed to new replies.