I'd like to edit a CSS file that is located at wp-content/plugins/woocommerce-gateway-stripe/assets/css/stripe-styles.css
, I tried to overwrite it by placing the edited css in my child theme at wp-content/themes/flatsome-child/woocommerce-gateway-stripe/assets/css/stripe-styles.css
, does not work.
Second thing I tried is to deregister and dequeque the CSS, in the original plugin it's registered and quequed like this
wp_register_style( 'stripe_styles', plugins_url( 'assets/css/stripe-styles.css', WC_STRIPE_MAIN_FILE ), array(), WC_STRIPE_VERSION );
wp_enqueue_style( 'stripe_styles' );
I've added this to my functions.php
function dequeue_my_css() {
wp_dequeue_style('wp-content/plugins/woocommerce-gateway-stripe/assets/css/stripe-styles.css');
wp_deregister_style('wp-content/plugins/woocommerce-gateway-stripe/assets/css/stripe-styles.css');
}
add_action('wp_enqueue_scripts','dequeue_my_css');
But the CSS is still there. Any ideas what it's wrong?