Custom code to display text in email inbox UI | XM Community
Skip to main content

Hi Everyone! I have a company logo in my email invitation header, and my email inbox UI is displaying a URL for my graphic header, when I want it to show text instead. 

I was told that this can only be accomplished through the use of custom code. Can anyone provide guidance on how to have the email inbox UI display text instead of a URL? I think seeing a long URL as the first line of an email reduces response rate. I would like to avoid removing the graphic in my header if possible. 

Thanks :)

Hi @kcbro ,

To display text instead of a URL for your company logo in the email inbox UI, you can use the ALT attribute in the HTML code of your email template. Here's how you can do it:

```html
<img src="your_logo_url_here" alt="Your Company Name">
```

Replace "your_logo_url_here" with the URL of your company logo image, and "Your Company Name" with the text you want to display in the email inbox UI.

The ALT attribute provides alternative text that is displayed when the image cannot be loaded or when the email client does not display images by default. By using the ALT attribute effectively, you can ensure that recipients see meaningful text even if the logo image is not displayed.


Hi Umang! Thank you for replying to my post. For some reason, I haven’t been able to get this strategy to work. Despite using the ALT attribute in the HTML code, the image URL is still displaying in the email inbox UI. 

Could it be that I’m not uploading the line of HTML code in the proper spot? Is it simply an addition or am I replacing my existing HTML code with this line?

Does it make a difference that my image is built into a header?


Hi @kcbro,  Could you please you are updating this in source version and not directly writing on the invite?

 

Directly writing this on the invite will result in showing image url. If you are not comfortable using source, you can also use image option (4th option) to include image.

Additionally if you just want to keep text, you can remove URL and include text only. You can do required formatting using available options.

Hope it helps. 

 

 


Hi Jagdish! Thanks for your reply. Yes, I am updating in the source, but the image URL is still displaying. 


Leave a Reply