<!-- Hero Image, Flush : BEGIN --><table width="100%" cellpadding="0" cellspacing="0" border="0" align="center" style="width:100%; max-width:640px;"><tr><td style="background-color: #ffffff;"><img src="https://via.placeholder.com/1280x640" width="640" height="" alt="alt_text" border="0" style="width: 100%; max-width: 640px; height: auto; background: #dddddd; font-family: sans-serif; font-size: 15px; line-height: 15px; color: #555555; margin: auto; display: block;" class="g-img"></td></tr></table><!-- Hero Image, Flush : END -->
<!-- To change the image, replace INSERT IMAGE URL HERE with the url of the image after you've uploaded your image -->%%[var @fullwidthimageset @fullwidthimage = "INSERT IMAGE URL HERE"]%%<!-- Hero Image, Flush : BEGIN --><table width="100%" cellpadding="0" cellspacing="0" border="0" align="center" style="width:100%; max-width:640px;"><tr><td style="background-color: #ffffff;"><img src="%%=v(@fullwidthimage)=%%" width="640" height="" alt="alt_text" border="0" style="width: 100%; max-width: 640px; height: auto; background: #dddddd; font-family: sans-serif; font-size: 15px; line-height: 15px; color: #555555; margin: auto; display: block;" class="g-img"></td></tr></table><!-- Hero Image, Flush : END -->
You'll notice that there is now AMPScript code at the top of the content block that declares and defines the variable for the full width image. All the person building the email has to do is swap out the INSERT IMAGE URL HERE with the actual url that results when they upload their image.
The only downside to this method of building emails like this is that the image will not render in the canvas area of the email during the building process. The person building it will need to so a send preview of the email to see that the image correctly renders. But one could argue that the person building the email should be doing a send preview anyway when they actually build their emails.
This is just one of those methods that I wanted to share that can cut down on the frustration of your marketing team and will lessen the amount of time you need to dedicate to helping them build the actual emails.
Ampscript is not just for templates and content blocks, you can also use it improve a customer or potential customer's experience with forms. Check out this post for more ampscript uses.
0 comments:
Post a Comment