Add images to web page templates
Besides variables and static text, you can add images to the webpage header body & footer. First, you'll need to upload the to-be-added image on the template detail page of the webpage the image needs to be displayed in. Then you can use the img alt tag in combination with scr ="${media.get("imagename.ext")}" to collect the images. For detailed instructions on adding images to webpage templates, follow the instruction below.
| Add image to the webpage header | Add image to the webpage footer | Add an image to the body of any webpage template |
Add image to the webpage header
Important
When an image upload has not been completed by updating the template, adding the image into the HTML version of the header will not display a preview of the image.

<div class="container mb-4">
<div class="row">
<div class="col-lg-8 mx-auto px-5 py-4">
#if( $media.contains("RTR_logo.png") )
<img alt="$escape.html(${brand.organization})" src="${media.get("RTR_logo.png")}">
#else
<h2>$escape.html(${brand.organization})</h2>
#end
</div>
</div>



Important
You can customize the HTML code as desired. If you opt for a complete restyle of the default HTML webpage header template, make sure you collect the image(s) you wish to display with the img alt tag in combination with scr ="${media.get("imagename.ext")}".
<img src="${media.get("LOGO_NAME.EXT")}"><br><br>
Add image to the webpage footer
Important
When an image upload has not been completed by updating the template, adding the image into the HTML version of the footer will not display a preview of the new image.

<img src="${media.get("LOGO_NAME.EXT")}">



Important
You can customize the HTML code as desired. If you opt for a complete restyle of the default HTML webpage footer template, make sure you collect the image(s) you wish to display with the img alt tag in combination with scr ="${media.get("imagename.ext")}".
<img src="${media.get("LOGO_NAME.EXT")}"><br>
Add an image to the body of any webpage template

Important
When an image upload has not been completed by updating the template, adding the image into the HTML version of the template will not display a preview of the image.

<img src="${media.get("LOGO_NAME.EXT")}" style="max-height:120px; max-width:960px;">



Important
You can customize the HTML code as desired. If you opt for a complete restyle of the default HTML webpage template, make sure you collect the image(s) you wish to display with the img alt tag in combination with scr ="${media.get("imagename.ext")}".
<img src="${media.get("LOGO_NAME.EXT")}"><br><br>