[Resolved] Avoid loading CSS child

Home Forums Support [Resolved] Avoid loading CSS child

Home Forums Support Avoid loading CSS child

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1061357
    Fabien

    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

    #1062112
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Give this function a shot:

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

    Let me know ๐Ÿ™‚

    #1063756
    Fabien

    Thanks Tom !

    #1064134
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.