Show or hide content in your emails (Content visibility)

Use the Content visibility feature to show or hide parts of your email based on each recipient's data. This allows you to send a single email that dynamically adapts to different recipients, based on conditions you define.

You can control content visibility based on:

  • 📱 Recipient's device: Show or hide content based on the device used to open the email. For example, show a compact layout for mobile users and a more detailed layout for desktop users.
  • 👤 Contact attributes: Show or hide sections of your email based on values stored in contact attributes. For example, show a VIP-only message to contacts with the Status attribute set as "VIP".
  • Event data: Show or hide content based on actions your contacts have (or haven't) taken. For example, show a promotional block only to contacts who have never placed an order.
  • 🛢️ Data feeds: Show or hide content dynamically using real-time data from data feeds. For example, show personalized product recommendations, live pricing, or localized store information based on external data.
  • 📦 Object attributes: Show or hide sections of your email based on values stored in object attributes. For example, show vehicle-specific maintenance tips only to contacts who own a particular car brand.

How does content visibility work?

Content visibility lets you define conditions to show specific content. Recipients who don't meet those conditions won't see it. You can use this feature in your email templates to show personalized, relevant content to each recipient without creating separate emails.

Here are some examples of how you can use content visibility in your emails:

  • Personalized greetings: Show "Hello Mr. X" for men, "Hello Mrs. Y" for women, or simply "Hello" if their gender is missing.
  • Targeted images or promotions: Show an image of a model wearing the recipient’s preferred clothing size or a product in their favorite color.
  • Custom promotional messages: Show special offers based on past purchases or other contact attributes.

In the following example, the same email template was sent, but the content received by recipients is completely different based on the conditions applied:

show_hide_content_example1_en-us.png show_hide_content_example2_en-us.png

Show or hide content in your emails

By default, all content in your emails is visible to every recipient. To show certain content only to specific recipients, you need to set conditions based on their device, contact attributes, event data, data feeds, or object attributes. Recipients who don't meet the conditions, or whose data is missing, won't see that content.

To apply content visibility conditions in the drag-and-drop editor:

  1. Select the content block or section you want to show only to specific recipients.
  2. In the side panel, scroll down to the Content visibility section.
  3. Choose which device to show the content on: All devices, Only on desktop, or Only on mobile.
  4. Click Add condition.
    dde_access-show-hide_en-us.png
  5. In the Add display conditions modal, click Add condition.
  6. Select the data type your condition will be based on:

    • Contact attributes
    • Event data (transactional params)
    • Data feeds
    • Object attributes
    dde_content-visibility_select-data-type_en-us.png
  7. Use the following tabs to view instructions for each data type:

    Contact attributesEvent dataData feedObject attributes
    1. Select the contact attribute you want to use (e.g., CUSTOMER).
    2. Choose the condition (e.g., = equals).
    3. Enter or select the value (e.g., "Yes" to show the content to contacts who are customers).
    dde_content-visibility_contact-attributes_en-us.png
  8. After adding your first condition, you can combine multiple conditions using the and and or operators:
    • Click and to add a condition that must also be true. All conditions must be met for the content to display.
    • Click or to add an alternative condition. The content displays if at least one condition is true.
      You can mix and and or operators to build more complex rules. For example, you can show a block if a contact is a VIP customer and their language is French or English.
  9. Click Add conditions to save your conditions.

The content block or section will now be outlined in light blue and display a slashed eye icon to confirm that visibility rules are active.

dde_content-visibility_outline_en-us.png
💡 Good to know

To ensure that every recipient sees relevant content, you can add a second content block or section and set it to appear only when the first block is hidden. To do this, apply the opposite condition to the second block. This lets you deliver tailored messages to different recipients within the same email.

⏭️ What's next?

🤔 Have a question?

If you have a question, feel free to contact our support team by creating a ticket from your account. If you don't have an account yet, you can contact us here.

If you’re looking for help with a project using Brevo, we can match you with the right certified Brevo Agency partner.

💬 Was this article helpful?

9 out of 40 found this helpful