Skip to content

Instantly share code, notes, and snippets.

@rajeshsingh520
Last active June 9, 2020 03:24
Show Gist options
  • Select an option

  • Save rajeshsingh520/4b72f8f1aa67f8d0a137947caa313f36 to your computer and use it in GitHub Desktop.

Select an option

Save rajeshsingh520/4b72f8f1aa67f8d0a137947caa313f36 to your computer and use it in GitHub Desktop.
adding custom css to the woocommerce email template
<?php
add_filter( 'woocommerce_email_styles', 'piweb_add_css_to_emails', 9999, 2 );
function piweb_add_css_to_emails( $css, $email ) {
$css .= '
.pi-order-meta-date { font-weight:bold; color:#f00; }
.pi-order-meta-time { font-weight:bold; color:#f00; }
';
return $css;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment