• Resolved jamieburchell

    (@jamieburchell)


    Hi there

    Is it possible to remove/dequeue this stylesheet?

    /plugins/stripe-payments/public/views/templates/default/style.css?ver=2.0.47 ?

    The reason is because I need to remove/override most of the styles to match the website, i.e. I need to write a lot of CSS overrides to remove the button styles and would prefer to start from scratch.

    Thanks
    Jamie

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Hi Jamie.

    If you want to override CSS class for a specific product, you can set either your own or some non-existent class for the button on Appearance section on product edit page. For example, if you set the class to non-existent-class, the button would use theme’s default appearance.

    Thread Starter jamieburchell

    (@jamieburchell)

    Hi Alexander

    Thanks for the quick response. I’d prefer to remove this stylesheet completely as it doesn’t contain anything I need and is a waste to download in that case.

    I found that I can remove the stylesheet with this:

    
    function custom_remove_asp_default_style() {
        wp_dequeue_style( 'asp-default-style' );
        wp_deregister_style( 'asp-default-style' );
    }
    add_action( 'wp_print_styles', 'custom_remove_asp_default_style' );
    

    Many thanks
    Jamie

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dequeue/remove plugin styles’ is closed to new replies.