Remove the whitespace above the header in WooCommerce email notifications

Remove the whitespace above the header in WooCommerce email notifications on child sites.

Snippet Type

Execute on Child Sites

Snippet

function filter_woocommerce_email_styles( $css, $email ) {
    $extra_css = '#wrapper { padding-top: 0 }';
    
    return $css . $extra_css;
}
add_filter( 'woocommerce_email_styles', 'filter_woocommerce_email_styles', 10, 2 );
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.