Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Links in WooCommerce emails using 'Email Body Text Colour' #5512
I am changing the WooCommerce e-mails to very simple emails, so I removed all CSS in the files:
What I don't understand, is that the links I am using in my admin-new-order.php, like this:
are using the 'Email Body Text Colour' I selected in the WP-backend. But why are my own templates using this anyways, since I removed all CSS. See included images.
I don't understand what you are trying to tell me.
In WooCommerce backend you can set 4 different colours as I showed you in the image.
In the original email-header.php from WooCommerce this is being included:
However, in my OWN email-header.php I'm not using ANY CSS at all. See below:
But still some HTML in my email is using the color value of 'Email Body Text Colour!
I just don't understand how that is possible...
Maybe I find some filters here: https://github.com/woothemes/woocommerce/blob/b2ddcf29cf290219823091825e293c107856e2a8/includes/abstracts/abstract-wc-email.php. Will do some research on that.
Ok, the solution should be found in the file I mentioned before, also explained here: #3653.
Here the example code to add in your functions.php file to give a inline style to other element then h1, h2, h3, a or img: #3597.
The only thing I don't manage to change is the inline styling for h1, h2, h3, a or img. I should be possible because this is explained:
This filter hook returns an array of tags which will have a default style applied to them - you can both remove and add any tags which you need for your theme's custom emails
But how to remove (unset) the standard h1, h2, h3, a & img styling to add your own...