I’ve discovered loads of articles on how one can take away the styling from the Woocommerce blocks, however I can discover nothing about how one can truly use your theme’s styling to interchange the eliminated styling from the woocommerce blocks.
Mainly I am utilizing a product tag woocommerce block however it’s utilizing the native styling from woocommerce regarding the button styling and title in every of the playing cards inside the block.
I’ve eliminated the styling with this block of code.
operate cc_deregister_styles() {
wp_deregister_style( 'wc-blocks-style' );
wp_dequeue_style( 'wc-blocks-style' );
}
add_action( 'enqueue_block_assets', 'cc_deregister_styles', 100 );
My query is, what do I do to get my styling added in? After I take a look at the web page there’s virtually zero styling to the playing cards inside the product tag block now. It is a bunch of li objects with their bullet level and never aligned.
I attempted doing one thing like this, however it did not work.
operate cc_deregister_styles() {
wp_deregister_style( 'wc-blocks-style' );
wp_dequeue_style( 'wc-blocks-style' );
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/type.css');
}
add_action( 'enqueue_block_assets', 'cc_deregister_styles', 100 );
So what do I do so as to add my theme again in?