Can I link a document to a photo?

  • 5
  • Idea
  • Updated 2 months ago
  • Not Planned
  • (Edited)
I have uploaded a document (pdf) and created a link in the text. I have added a photo (jpg) of the cover of the document. I would like them to be able to click on the photo and go to the document. How can I do that?
Photo of Montgomery Bell Academy

Montgomery Bell Academy

  • 9 Posts
  • 2 Reply Likes

Posted 5 years ago

  • 5
Photo of Matt Olsen

Matt Olsen, Champion

  • 117 Posts
  • 43 Reply Likes
Official Response
That's a great idea, and something I wish Emma made easier. For now, you'll need to add some custom code.

<a href="http://pdf-url"><img src="http://image-url"></a>

To get the URL for pdf and jpg you want to use, go to the library and click the little down arrow box and select "copy image/document URL."
Photo of Ben Vance

Ben Vance, Alum

  • 328 Posts
  • 14 Reply Likes
Official Response
Hi, everyone!  I wanted to jump in a provide an alternate method for doing this that works especially with an image you’ve added to a campaign created with the drag and drop editor.

First things first, add the document to your document library from the main campaigns page:  

Once you’ve done that, click the drop down arrow to the right of the document and choose, “Copy this document URL”


Now that you have that link copied, then head over to your campaign.  When you insert the image, you’ll now have the URL to your hosted document that you can paste in.  

Matt’s option above is right on if you’re coding your own HTML, and now you’ve got another method if you’re just using the drag & drop editor.  I hope this helps!
(Edited)