Hello @igloo3,
Please refer to this article to learn how you can add custom CSS to the product table: https://cartflows.com/docs/filters-to-customize-product-table/.
Hope this helps.
Thread Starter
Julien
(@igloo3)
Hi,
Thanks. I’ve tried to use this code to add a negative margin top to the body.
Because there’s a huge gap between the main title and the first content image, but that won’t work.
Can you please help me ? Thanks
/* * The woo_ca_email_template_table_style filter allows you to change the default styles of * product table & product image provided by WooCommerce Cart Abandonment Recovery plugin. * */ add_filter( ‘woo_ca_email_template_table_style’, ‘wcar_product_table_styles’, 10 ); function wcar_product_table_styles( $style ){ $style[‘product_image’][‘style’] = ‘height: 42px; width: 42px;’; $style[‘table’][‘style’] = ‘color: #636363; border: 1px solid #e5e5e5; width:250px;margin-top: -90px;’; $style[‘table’][‘attribute’] = ‘align=”center” ‘; return $style; }
Hello @igloo3,
The code you shared seems to have an issue, please refer to this screenshot: https://bsf.d.pr/i/nLk2Vv.
Could you please try this code and elt us know how it goes:
/* * The woo_ca_email_template_table_style filter allows you to change the default styles of * product table & product image provided by WooCommerce Cart Abandonment Recovery plugin. * */
add_filter( ‘woo_ca_email_template_table_style’, ‘wcar_product_table_styles’, 10 );
function wcar_product_table_styles( $style ){
$style[‘product_image’][‘style’] = ‘height: 42px; width: 42px;’;
$style[‘table’][‘style’] = ‘color: #636363; border: 1px solid #e5e5e5; width:250px;margin-top: -90px;’;
$style[‘table’][‘attribute’] = ‘align=”center”’;
return $style;
}