Expand my Community achievements bar.

SOLVED

How to add image as preview / pre-header in HTML OR can we code that it Adobe campaign classic?

Avatar

Level 1

I want to show a image instead of preview text (section below the email subject) when the email reaches to the inbox. Please suggest some valuable solutions to accomplish this.

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hi @sphawde ,

You can replace the preview text with your image source.

It should work this way.

Refer to this code:-

 <!-- Visually Hidden Preheader Text: BEGIN -->
            <div aria-hidden="true" style="text-align:center;OVERFLOW: hidden; MAX-HEIGHT: 0px; mso-hide: all;">
                <br><img src="yourimage.png" 
style="width: 300px;" data-status="true" </div>
            <!-- Visually Hidden Preheader Text: END -->

View solution in original post

3 Replies

Avatar

Correct answer by
Level 4

Hi @sphawde ,

You can replace the preview text with your image source.

It should work this way.

Refer to this code:-

 <!-- Visually Hidden Preheader Text: BEGIN -->
            <div aria-hidden="true" style="text-align:center;OVERFLOW: hidden; MAX-HEIGHT: 0px; mso-hide: all;">
                <br><img src="yourimage.png" 
style="width: 300px;" data-status="true" </div>
            <!-- Visually Hidden Preheader Text: END -->

Avatar

Community Advisor

Hello @sphawde,
I am not aware that image can be used in preheader for email. The definition of preheader is:

 

An email preheader is the short summary text that appears next to or below the subject line of an email in most email clients. It provides additional context and information about the email content and helps the recipient decide whether to open the email or not.

Since the preheader text is typically displayed in plain text format, it's not possible to include images in the preheader. However, you can use HTML tags such as bold, italic, and links to format and enhance the preheader text.


 

And for that you can use the bullet proof preheader from litmus article
https://www.litmus.com/blog/the-little-known-preview-text-hack-you-may-want-to-use-in-every-email/

<div style="display: none; max-height: 0px; overflow: hidden;">
Insert hidden preheader text here.
</div>
  
<!-- Insert &#847;&zwnj;&nbsp; hack after hidden preview text -->
<div style="display: none; max-height: 0px; overflow: hidden;">
&#847; &zwnj; &nbsp; &#8199; &#65279; &#847; &zwnj; &nbsp; &#8199; &#65279; &#847; &zwnj; &nbsp; &#8199; &#65279; &#847; &zwnj; &nbsp; &#8199; &#65279; &#847; &zwnj; &nbsp; &#8199; &#65279; &#847; &zwnj; &nbsp; &#8199; &#65279; &#847; &zwnj; &nbsp; &#8199; &#65279; &#847; &zwnj; &nbsp; &#8199; &#65279;
</div>



Marcel

Avatar

Administrator

Hi @sphawde,

Were you able to resolve this query with the help of the given solutions or do you still need more help here? Do let us know. In case the given solutions were helpful, then kindly choose the one that helped you the most as the 'Correct Reply'.
Thanks!



Sukrity Wadhwa