SOLVED

Email Preview Pane

Go to solution
Anonymous
Not applicable

Email Preview Pane

Hello,

How can I control what is shown in the email preview pane when a person goes through their email? I am looking to control what is shown for mobile devices.

Thanks,
David
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Justin_Cooperm2
Level 10

Re: Email Preview Pane

Make the first thing that appears in the Email Template under the <body> a “mktEditable” section. Add whatever other content or “mktEditable” sections you want beneath that first section (it’s irrelevant what else is in the template). Then, when you create an individual Email Asset from this template, double-click the first region in the email. Click the “HTML” button in the TinyMCE rich-text editor. Add a pre-header at the very beginning of the code like this:

<div style="display: none !important;">This is the pre-header. It should be ~100 characters long for best results as different clients will show different amounts of the pre-header…</div>

<div>This is the actual start of the email content here!</div>

When you click “Update” you’ll only see “This is the actual start of the email content here!” in TinyMCE, but the pre-header will be applied.

View solution in original post

13 REPLIES 13
Justin_Cooperm2
Level 10

Re: Email Preview Pane

Make the first thing that appears in the Email Template under the <body> a “mktEditable” section. Add whatever other content or “mktEditable” sections you want beneath that first section (it’s irrelevant what else is in the template). Then, when you create an individual Email Asset from this template, double-click the first region in the email. Click the “HTML” button in the TinyMCE rich-text editor. Add a pre-header at the very beginning of the code like this:

<div style="display: none !important;">This is the pre-header. It should be ~100 characters long for best results as different clients will show different amounts of the pre-header…</div>

<div>This is the actual start of the email content here!</div>

When you click “Update” you’ll only see “This is the actual start of the email content here!” in TinyMCE, but the pre-header will be applied.

Chris_Saporito
Level 9

Re: Email Preview Pane

Hi Justin, would you care to share some screen grabs of this?

Thanks!

Chris

Justin_Cooperm2
Level 10

Re: Email Preview Pane

Screen grabs of the code? Or what it looks like in an email client? It's just the preview you would see on an iPhone or in Gmail inbox...

Chris_Saporito
Level 9

Re: Email Preview Pane

A screen grab of the code would be perfect!

Justin_Cooperm2
Level 10

Re: Email Preview Pane

The code is pasted above. It should be the first thing that comes after the HTML <BODY> element. You can put it in the Email Template itself or insert it using the text editor if the very first thing in the <BODY> is a mktEditable <div>

Anonymous
Not applicable

Re: Email Preview Pane

How do you get around the View as webpage text when that is added to the EMAIL.

Another way of displaying this text if you are coding without the wyswig is to place a snippet at the beginning of the HTML. 

   <!-- THIS IS THE PREVIEW TEXT LOCATION FOR RENDERING THE PREVIEW TEXT BELOW THE SUBJECT LINE - THIS SECTION DOES NOT DISPLAY IN THE BODY OF THE EMAIL -->

      <div style="text-align:center;color:#333333(same as background);color:transparent!important;font-size:1px;line-height:1px;opacity:0;" >

               come look at this cool email

     </div>

  <!-- END - -->

Justin_Cooperm2
Level 10

Re: Email Preview Pane

If you click "Edit Settings" in the Email Editor you will see an option to toggle "Include View As Webpage"

Anonymous
Not applicable

Re: Email Preview Pane

I found a resolve that works across the board.

The resolve is to place the view as webpage token into place after the snippet. Here is my fully functional code snippet.

<!-- we chose to remove the row once you drop to mobile-->

<tr id="remove">

                <td align="center" class="textStyle" >                  

                <!-- THIS IS THE PREVIEW TEXT LOCATION FOR RENDERING THE PREVIEW TEXT BELOW THE SUBJECT LINE - THIS SECTION DOES NOT DISPLAY IN THE BODY OF THE EMAIL -->

                        <div class="textStyle" style="text-align:center;color:#333333;color:transparent!important;font-size:1px;line-height:1px;opacity:0;" >

                                                  Make sure to come visit our cool event

                                 <!-- Non breaking spaces to clear any other data from showing -->

                                                

                                 </div>

                                 <!-- Marketo webpage token -->

                                 {{system.viewAsWebpageLink}}

                                 <!-- end of marketo token -->

                        <!-- END -*****THIS IS THE PREVIEW TEXT LOCATION FOR RENDERING THE PREVIEW TEXT BELOW THE SUBJECT LINE - THIS SECTION DOES NOT DISPLAY IN THE BODY OF THE EMAIL -->

                </td>

    </tr>

Anonymous
Not applicable

Re: Email Preview Pane

Ops, I forgot to mention this table row needs to be the first snippet in the email.