Archived topic
Add global colors to woocommerce notifications
6 replies · Started by eduard sans on August 4, 2022
Hi there, I was customizing the woocommerce global colors but I couldn't find the ones regarding e-mail notifications. It would be great for future releases to have this option as well, but in the meantime, could I get any php snippet to link global colors to these e-mails? I'd like to be able to link the color base if possible (I don't need customization of the 4 palettes woocommerce is providing in woocommerce > settings > e-mails).
Thanks in advance!
Hi there,
is that the colors used in the Email ? or a notice on screen ?
the colors used in the email yes
The emails colors ( set in Woocommerce > Settings > Emails --> Email template ) need to be a static color value e.g #ff00ff for the main reason that Email Clients have terrible support for CSS Variables:
https://www.caniemail.com/features/css-variables/
And GP Global Colors rely on CSS Variables.
So anything we did would be no better then using the email template color options in the Woocommerce > Settings unfortunately.
Noted! thanks anyway David, have a nice weekend!
I close the ticket
You're welcome