Skip to content

Instantly share code, notes, and snippets.

@danielbitzer
Last active June 8, 2023 12:42
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielbitzer/34a694a32b0c0b6291a8c7ef701588bb to your computer and use it in GitHub Desktop.
Save danielbitzer/34a694a32b0c0b6291a8c7ef701588bb to your computer and use it in GitHub Desktop.
Customizing WooCommerce and AutomateWoo email CSS with a filter
<?php
add_filter( 'woocommerce_email_styles', 'my_filter_woocommerce_email_styles' );
/**
* Filter email styles for WooCommerce and AutomateWoo.
*
* @param string $css
*
* @return string
*/
function my_filter_woocommerce_email_styles( $css ) {
$css .= "#template_header { background-color: #7532e4; } ";
return $css;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment