How to hide unused thumbnails in HTML template

Updated 2 years ago

If you are using image url placeholders and want to only show image tags where there are corresponding image values you can put conditional formatting in the HTML using javascript. For example:

 <script language="javascript" type="text/javascript">
if ("#?SupplementalImageURL01?#" == "")
            document.getElementById('img02').style.display = 'none';
if ("#?SupplementalImageURL02?#" == "")
            document.getElementById('img03').style.display = 'none';

How did we do?

Explore our brands and social media
Skustack Memaila Turnstock WayToPay.Me Facebook Instagram Linkedin YouToube Twitter
Powered by HelpDocs (opens in a new tab)