CMS Development

CIG2
Member

Linking an Image in Custom Template

I am trying to make an image clickable within a custom template. I have attempted wrapping the image code in the <a> tag with no luck. Here is the current image code.

 

<img src="{{ item.background_image.src }}" alt="{{ item.background_image.alt }}" width="538" style="width:538px;max-width:538px;">

 

Any help is much appreciated!

0 Upvotes
1 Reply 1
jennysowyrda
Community Manager
Community Manager

Linking an Image in Custom Template

Hi @CIG2,

 

Are you still looking for assistance with this matter? If so, can you please provide additional information? Only questions that include links, screenshots and specifics can be answered on the Community.

 

Thank you,
Jenny

0 Upvotes