• Resolved l r

    (@lainyrache)


    Hi
    I am using a child theme with GeneratePress.
    Is it possible to remove the parent style.css from my child theme?
    At the moment both the parent stylesheet and my child stylesheet are loading.
    I’ve tried using wp_dequeue_style but with no success.

    I’d also like to remove the customizer styles that are loading in the header. Is this possible?

    Thanks for any help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Tom

    (@edge22)

    Hi there,

    You can, but it will be messy without the stylesheet?

    add_action( 'wp_enqueue_scripts', 'generate_remove_scripts' );
    function generate_remove_scripts() {
    	wp_dequeue_style( 'generate-style', get_template_directory_uri() . '/style.css', false, GENERATE_VERSION, 'all' );
    }
    Thread Starter l r

    (@lainyrache)

    Thanks for that Tom, I planned to use my own stylesheet in the child theme – it makes it easier not to battle against the parent stylesheet.

    Theme Author Tom

    (@edge22)

    Cool – have fun! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove style.css and custom styles from child theme’ is closed to new replies.