Is there a way to add captions to images?

Anonymous
Not applicable

Is there a way to add captions to images?

I'd like to add a caption to one of the images in an email we're sending today.

Can anyone tell me if marketo has that functionality?

Many thanks!
Alexis
Tags (1)
3 REPLIES 3
Anonymous
Not applicable

Re: Is there a way to add captions to images?

Emails: you can add text that is displayed when users move the mouse over the image and image description that is displayed when the recipient has images blocked by default.
 
When you insert or double click an image it opens the dialog box "insert/edit image".
 
Title is displayed when users move the mouse over.
 
Image description is the text displayed when the email client can not display images or blocks by default.
 
The tags generated behind the scenes are img title="Image title" and the description is alt="image description"



jQuery is the simplest and quickest solution for Landing Pages:

The image is defined as
<img src="my_image.jpg" alt="" class="hascaption" title="image caption" />


A HTML block sets the caption

$(document).ready(function() {
  $("img.hascaption").each(function() {
  $(this).wrap('<div class="figure"></div>')
  .after('<p class="caption">'+$(this).attr("title")+'</p>')
  .removeAttr('title');
  });
  $(".figure").width($(this).find('img').width());
});
 

 
Anonymous
Not applicable

Re: Is there a way to add captions to images?

Nice solution, but probably overkill.

You can wrap your image in a container (like a <div> tag) and add a caption underneath it.

<div id="picture-container">
     <img src="path/to/myimage.png" />
     <p>Here's a Caption!</p>
</div>
Anonymous
Not applicable

Re: Is there a way to add captions to images?

Fanstatsic. Thank you!