veda-consulting-company / uk.co.vedaconsulting.mosaico

Other
39 stars 75 forks source link

Preheader duplicated ? esp. in text version #509

Open artfulrobot opened 2 years ago

artfulrobot commented 2 years ago

If I use the preheader feature of versafix, the text is placed twice in the HTML block and the plain text version of the email literally

Text output:

--=_dacd86e6c5c26147efa726a093c996df
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=utf-8

This is the preheader text which should show up as the preview. 

                 This is the preheader text which should show up as the preview. 

                 View in your browser 

                 [1] 

It looks like the HTML is designed to only show one, depending on the client?

Has anyone else found this to be a problem?

MegaphoneJon commented 2 years ago

Not a solution, but I have an extension that adds a mailing preview text field to all CiviMail (Mosaico and traditional) and uses some tricks for a better overall experience.

artfulrobot commented 2 years ago

@MegaphoneJon was that easier than hacking Mosaico then?

I did it this way:

mosaico-preheader-od-2.8.diff

but now I have the problem that all my Mailings » Mosaico Templates are still using the original versafix and I can't figure out how to get them to re-load the base template. hmmm.

MegaphoneJon commented 2 years ago

@artfulrobot our requirement was that it work on traditional mailings as well, so I didn't compare the approaches.