Re: How can I remove "View email as webpage" from subject line preview?

Anonymous
Not applicable

How can I remove "View email as webpage" from subject line preview?

I want all emails to include the option to view emails as a web page. However, when I include it, the code gets placed above the snippet meant to go in the email subject line preview.


Anyone know how to adjust this?

Thanks in advance!

Tags (1)
6 REPLIES 6
Anonymous
Not applicable

Re: How can I remove "View email as webpage" from subject line preview?

Hey Stephen, I'm not quite sure what you mean by "subject line preview." Could you share a screenshot?

Colin_Ryder
Level 6 - Champion Alumni

Re: How can I remove "View email as webpage" from subject line preview?

Hi Stephen

I'm intriuged by what you mean but we use a header snippet which is just that... view as web page and we use the system token code with text in different languages. We then turn off the system "View as a Web Page".

HTH

Colin

Scott_McKeighe2
Level 5

Re: How can I remove "View email as webpage" from subject line preview?

You can use the View as Webpage token (here's the documentation) to intentionally place the link you want somewhere other than the very top of the email. In this way, your Email Preheader or Preview Text section should, depending on how you setup your email template, be the first thing that email clients see to put into the preview.

Anonymous
Not applicable

Re: How can I remove "View email as webpage" from subject line preview?

If we look at how Outlook pulls what they call the "Auto Preview", it is the first text that is entered into the template or email. What we have done is to create an editable region just below the open body tag in the template. Within that <span> declared region, we add another <span> tag that has a inline style of display:none;

Example of code:

<span class="mktEditable" id="AutoPreview"><span style="display: none;">Upcoming discount on the ..... service for committed customers</span></span>

This now becomes the first text the email client encounters but is also hidden for the world to see. If you do not have a specific message for this "Auto Preview", then you must enter in non break spaces to flush out any text after that from being pulled in. I have found that about 40 " " tags are needed to produce nothing in the "Auto Preview" area on all email clients.

I hope this is what you were going for.

Anonymous
Not applicable

Re: How can I remove "View email as webpage" from subject line preview?

Thanks for the replies everyone. I am not receiving alerts on these responses like I used to (I guess due to the Marketo community changes), but by subject line preview, I simply mean the email copy that populates only on mobile devices before you open the email. E.g., below the subject line, there is a snippet of text that appears that will show up on a mobile device to further compel recipients to open. I hope that is more clear.

Thanks for the suggestions everyone.


Steve

Scott_McKeighe2
Level 5

Re: How can I remove "View email as webpage" from subject line preview?

In your case Stephen, you need to use the Marketo system token {{system.viewAsWebpageLink}} in your HTML template instead of relying on the option to Include the View as Webpage link when setting up the email. We use the token attached to a link in the top of the email (href="{{system.viewAsWebpageLink}}") after the block we dedicate for our preview text.

Both the token and the setup option perform the same function, but the system token lets you put the link where you want it instead of just at the top of the email.

Hopefully that helps clarify things for you!