Hi there, I am trying to set-up HTML e-mail in Shopware. I created an HTML template (using CampaignMonitor) that should display properly in various e-mailclients. The template, when saved as an HTML file, looks okay when I open it in my browser. However, when I paste the exact same code in a Shopware e-mail template, I get the following error message (I have added line breaks in the error message to make it easy to read): Syntax Error 8d" on line 895 "@import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,700,400); @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,700,400); @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,700,400); @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,700,400); @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,700,400); body,.wrapper,.emb-editor-canvas{ background-color:#fbfbfb } .border{ background-color:#e9e9e9 } h1{ color:#565656 } .wrapper h1{ } .wrapper h1{ font-family:sans-serif } @media only screen and (min-width: 0){ .wrapper h1{ font-family:"Open Sans",sans-serif !important }} h1{ } .one-col h1{ line-height:44px } .two-col h1{ line-height:34px } .three-col h1{ line-height:28px } .wrapper .one-col-feature h1{ line-height:58px } @media only screen and (max-width:" - Unexpected ":", expected one of: "}" , " " , ATTR
The complete code of the HTML e-mail I am using can be found here (feel free to use the code for your own project if you like): http://pastebin.com/S2rJR7hH. Does anyone have an idea what I am missing and what would be a solution? Thanks in advance!
I just found out what went wrong: apparently, the code I used missed some spaces between CSS tags. Not a problem for Safari, but Shopware wants me to be a little more precise Adding spaces solved my problem!