Default Alt value for mktoImg div element | Community
Skip to main content
Grégoire_Miche2
Level 10
June 2, 2016
Duplicate

Default Alt value for mktoImg div element

  • June 2, 2016
  • 2 replies
  • 2035 views

The MktoImg element enables to define where images should be in a guide LP template and in an email 2.0 template.

When using the div method, the template designer can even set a default image (mktoimgSrc attibute), but it is not possible to set the alt value of this image.

So we need to also have a mktoimgAlt attribute to set the defautl alt value.

-Greg

2 replies

Justin_Cooperm2
Level 10
June 7, 2016

This is possible in v2.0 Email Templates.

Define it as follows and the "alt" attribute will be retained on the <img> even after the user selects one in the Email Editor.

<div class="mktoImg" id="exampleImg" mktoName="Example Image" mktoImgLink="marketo.com"

  <a><img alt="my image"></a>

</div>

Grégoire_Miche2
Level 10
June 7, 2016

Hi Justin,

Cool

Probably worth the addition to the doc, then.

-Greg

February 6, 2020
No text available