Hello,
You can apply some CSS to align email content. Here is a great article that introduces different methods to apply CSS to WooCommerce emails: https://www.mail-mechanic.com/woocommerce-email-css
If you’d like to learn CSS, I highly recommend using the free tutorials at w3schools. Here, you can find the basics of selectors (how to target the right element on the page), and properties (how to change the element on the page).
Hi @maykato,
Thank you for your answer.
I already have this code but I am looking for the right CSS class to address the additional content:
add_filter( 'woocommerce_email_styles', 'mm_add_custom_woocommerce_email_styles', 10, 2 );
function mm_add_custom_woocommerce_email_styles( $css, $email ) {
return $css . '
#body_content_inner .text{
text-align: center !important;
}
';
}
I looked in the email-styles.php file for an ‘additional content’ class but did not find anything..
Could you maybe help me with that?
Kind regards,
Thomas
Hi there,
It looks like you are looking for help with customization but that falls outside our support scope on this forum. You can read what support covers on this forum here:
https://woocommerce.com/support-policy/#customization
Searching around I found some other resources that might be helpful for you.
* https://www.businessbloomer.com/woocommerce-add-css-woocommerce-emails/
* https://websavers.ca/how-to-edit-the-css-of-a-woocommerce-email-template-2
If you require more help with the actual coding, we’d recommend hiring a developer or one of the customization experts listed at https://woocommerce.com/customizations/.
Thanks.