AST is changing the color of custom php code

[ad_1]

hi,

I have the below code in my function.php file. It displays “Charges on your statement will appear as XYZ.com” in the order emails. This code worked fine prior to installing AST and appeared in red color. However, in AST the email templete changes the color to the default color. I dont want AST to change this red color. I am ok with the blue overall but need the below code to still appear in red.

add_action( 'woocommerce_email_before_order_table', 'bbloomer_add_content_specific_email', 20, 4 );
  
function bbloomer_add_content_specific_email( $order, $sent_to_admin, $plain_text, $email ) {
   if ( $email->id == 'customer_processing_order' or 'customer_completed_order' ) {
      echo '<h2 class="email-upsell-title"><span style="color: rgb(255, 0, 0);">Charges on your statement will appear as &quot;<strong>XYZ.com</strong>&quot;</span></h2><p class="email-upsell-p"></p>';
   }
}

how do i stop it from changing the color on above code?

thanks

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer