Show & Hide Content

Depending on what features have been used when creating an Email Template there are a number of different ways for Users to view the content, although the majority will view the email using their email application or mobile device.

When people click to view the web version or they share the email on Facebook, Twitter or with friends then you may need to consider hiding certain pieces of content.

Hide Content in Web Version

Viewing the email in a web browser is useful for when the User is having trouble with the way in which it is displayed in their email application or mobile device.

The web version displays all content by default and below are examples of when it could make sense to hide sections.

Hide Personal Info

    {?hide_content location="web_version"?}
        <p>Email sent to someone@somedomain.com</p>
    {?/hide_content?}

Remove Pointless Links

    {?hide_content location="web_version"?}
        <p>Can't see images? Click here to view the Web Version</p>
    {?/hide_content?}

Hide Content in Shared Versions

People are not likely to share emails public when they contain personal details but to safeguard against that Templates can be coded to hide content when being shared.

Hide Personal Info

    {?hide_content location="social"?}
        <p>Thanks for buying a Turbo 9000 Widget Rotator</p>
    {?/hide_content?}

Stop Unwanted Opt-outs

    {?hide_content location="social"?}
        <p>Click here to unsubscribe</p>
    {?/hide_content?}

Show Only in Email Version

To only ever show content in the inbox and therefore hide it when web and shared versions of an Email Campaign are displayed, use this tag.

Hide in Web & Shared Versions

    {?hide_content location="online"?} 
        <p>Can't see images? Click here to view the Web Version</p>
    {?/hide_content?}

Custom Rules

Custom rules that hide or show content can also be creating. It operates using information stored in fields that relate to the User the message was sent to. For more details on how to code Email Templates in that way take a look at the Template Language.