Site logo

Archived topic

Avoid loading CSS child

3 replies · Started by Fabien on November 12, 2019

Viewing posts 1–4 of 4

Hi,

I am using a child theme with GP. All my custom CSS is pushed with the customizer, thus my child theme css file doesn't have any code/use. Is there a way to not load it and thus remove one server call ?

Thanks,

Fabien

Hi there,

Give this function a shot:

add_action( 'wp_enqueue_scripts', function() {
    wp_dequeue_style( 'generate-child' );
}, 50 );

Let me know :)

Thanks Tom !

You're welcome :)

This archived topic is closed to new replies.