I am using Magento 1.9.1. I want to customize my Magento Transactional Emails. To do so, I duplicated email-inline.css and email-non-inline.css from base package into my customized package (into this path: \skin\frontend\mypackage\default\css ).
I made the necessary changes and I uploaded the updated css but the emails arrive with the same design as before, as if the system was unaware of my custom css.
What do I have to do?
- 
 Which files did you copy where?Fabian Blechschmidt– Fabian Blechschmidt2015年07月10日 12:25:11 +00:00Commented Jul 10, 2015 at 12:25
- 
 Have you fixed this? I'm having this same problem.nano– nano2016年04月05日 08:34:34 +00:00Commented Apr 5, 2016 at 8:34
3 Answers 3
Here's one thing you could try.
NOTE: This will only work for email templates that include use the
{{var non_inline_styles}}variable.
- Create a file called email-custom.cssand add all the custom<CSS>that you need
- Upload this file to skin/frontend/YOURPACKAGE/YOURTHEME/css/
- In your Admin Panel go to System> Configuration> General> Design> Transactional Emails and add the email-custom.cssfile to theNon-inline CSS File(s)field like in the image below (using commas to seperate files)
- Save config and flush all cache
What i did was adding {{var non_inline_styles}} on template content and then i added all my styles on the template styles.enter image description here
https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/templates/template-email.html
refer this for both non-inline and inline CSS for mobile templates.
Explore related questions
See similar questions with these tags.