Jump to content

Email full-width html problem


simpoint

Recommended Posts

I have a problem with emails width. Prestashop 1.6.0.9. Everything was alright until I modified Translations. I changed only text, not structure, when suddently all emails change their width to full-width and look awful.

Before than I modify translations, it was okay. All emails had width approximately 650px, like is defined in HTML body template (for example in order_conf.html). Received email on image - good_email.jpg.

I didn't change anything in HTML structure and now all emails have full-width. And I don't want this - image bad_email.jpg.

Any ideas how can I fix this or restore original emails?

post-880500-0-11444000-1419769023_thumb.jpg

post-880500-0-20694800-1419769025_thumb.jpg

Link to comment
Share on other sites

  • 6 months later...
  • 7 months later...

I have the same problem! Changed only the translations... Emails are now in full width?!

 

I use PS 1.6.1.2

 

EDIT:

I found the problem! I looked in the sourcecode of the mail template files of my custom template. I noticed that the hole doctype, meta, css and head code was gone. So I opened all the mail templates from the bootstrap folder and copy & paste the head code and closing tags (</body></html>) in my custom theme email templates.

 

This line is responsible for the width:

	<body style="-webkit-text-size-adjust:none;background-color:#fff;width:650px;font-family:Open-sans, sans-serif;color:#555454;font-size:13px;line-height:18px;margin:auto">
Edited by morfer (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...