Magento – How to style transactional email with email-inline.css

cssemailemail-templatesmagento-1.9transactional-mail

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?

Best Answer

Here's one thing you could try.

NOTE: This will only work for email templates that include use the {{var non_inline_styles}} variable.

  1. Create a file called email-custom.css and add all the custom <CSS> that you need
  2. Upload this file to skin/frontend/YOURPACKAGE/YOURTHEME/css/
  3. In your Admin Panel go to System > Configuration > General > Design > Transactional Emails and add the email-custom.css file to the Non-inline CSS File(s) field like in the image below (using commas to seperate files)
  4. Save config and flush all cache

Magento Transactional Email Custom CSS

Related Topic