Hello @martins56,
I will forward this scenario to our developers. They will review and plan accordingly. Once they have reviewed this scenario, I will update you on the status.
Thanks for sharing this scenario with us.
Hello @martins56,
Our developers have confirmed that “we are re-adding the WooCommerce styles using the WooCommerce’s script action.” Could you please provide more information about the CSS issue you mentioned? This additional context would help us understand the issue better and provide you with a more accurate response.
Looking forward to hearing from you.
@bhshravankumar
A filter like yours should merge the existing css to your new css. Instead, you are removing the previously added css.
Just have a look at this example from the official documentation and compare to yours below:
public function woo_default_css( $woo_styles ) {
//YOU REWRITE THE PREVIOUS $woo_styles IGNORING ANY CHANGES MADE BEFORE AND ADD ONLY YOUR OWN CSS
$woo_styles = array(
'woocommerce-layout' => array(
'src' => plugins_url( 'assets/css/woocommerce-layout.css', WC_PLUGIN_FILE ),
'deps' => '',
'version' => WC_VERSION,
'media' => 'all',
'has_rtl' => true,
),
'woocommerce-smallscreen' => array(
'src' => plugins_url( 'assets/css/woocommerce-smallscreen.css', WC_PLUGIN_FILE ),
'deps' => 'woocommerce-layout',
'version' => WC_VERSION,
'media' => 'only screen and (max-width: ' . apply_filters( 'woocommerce_style_smallscreen_breakpoint', '768px' ) . ')',
'has_rtl' => true,
),
'woocommerce-general' => array(
'src' => plugins_url( 'assets/css/woocommerce.css', WC_PLUGIN_FILE ),
'deps' => '',
'version' => WC_VERSION,
'media' => 'all',
'has_rtl' => true,
),
);
return $woo_styles;
}
Hello @martins56,
Thanks for providing more information, I have shared it with our developers, and they will review and plan accordingly.
Best Regards,