Any ideas on how to make the preheader text appears before "view as a web page" ?
Thank you,
Timothy.
Hi Timothy,
I have used below approach for preheaders in my emails:
created one editable div in email template
<div class="mktEditable" id="edit_preheader">
</div>
Now open any email(who has same template) in editable mode. Check the email content section and right click on edit_preheader and select "Edit".
Now click on Html and paste it "<p style="font-size: 0;">your preheader text here</p>"
Hi Harish,
This approach is good, but when you use the "View as webpage" link on your email, it goes before the Pre-header.
The solution i found is to use that on the template level : {{system.viewAsWebpageLink}} to replace the "View as Webpage" option in the edit mode and put it directly in your template, so you can manage which sentence appears first.
<span class="preheader mktEditable" id="edit_preHeader" style="display: none !important; visibility: hidden; opacity: 0; color: transparent; height: 0; width: 0;">Will you believe this Pre-Header? Because I can't.</span>
<p>View as Webpage <a href="{{system.viewAsWebpageLink}}">here</a></p>
And add this to your CSS :
.preheader { display:none !important; visibility:hidden; opacity:0; color:transparent; height:0; width:0; }
Thanks to you again,
I hope this will help someone at some point.
Timothy.