WooCommere email formatting overwritten – why?
-
We implemented an own template for outgoing emails, that works fine.
But the format in outgoing WooCommerce mails does what it wants. Where comes it from and how can I change it?
For example the customer-completed-order.php
In my mail app for example h1 looks like that:
<h1 style='color: #d33; font-family: "Helvetica Neue",Helvetica,Roboto,Arial,sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #e45c5c;'>
h2 looks like that:
<h2 style='color: #d33; display: block; font-family: "Helvetica Neue",Helvetica,Roboto,Arial,sans-serif; font-size: 18px; font-weight: bold; line-height: 130%; margin: 0 0 18px; text-align: left;'>
I did neither choose the typo nor the size. Where comes it from?
I have own sizes in <style> setting but they are overwritten with this, because css locally is stronger.For h1 I can change it in email-header.php like that:
<h1 style="font-size: 15pt;"><?php echo $email_heading; ?></h1>
But this cannot be the best solution!
Also I get a <body section, where comes it from? I do not need this. How can I avoid to get the body? I just need the content of the mail!
I also tried to deactivate these lines:
do_action( ‘woocommerce_email_header’, $email_heading, $email );
do_action( ‘woocommerce_email_footer’, $email );
The page I need help with: [log in to see the link]
- The topic ‘WooCommere email formatting overwritten – why?’ is closed to new replies.