Skip to main content

How to set show hide code in different type of content blocks. Could you please let me know?

Hi @sachin16 ,

Thank you for the excellent question about dynamic content blocks! 

Whether you are using the Classic Editor or the New Editor for your email templates, Klaviyo makes it easy to show and hide dynamic content to your subscribers.
 

You can read more about How to show or hide template blocks and sections based on dynamic variables (new editor) in this Help Center article, or if you are using the Classic Editor there is additional documentation provided here: How to show or hide template blocks based on dynamic variables (classic editor)

Essentially, the logic is the same for both:

  1. Create a campaign or flow message
  2. Add an image/text block
  3. Click Display Options from the image block’s customization menu
  4. Click Create Logic
  5. Add this conditions for how you want that block to be shown or hidden
  6. Click Save Changes 
  7. Click Done on the block 

--

 

Hope this helps!

-- Ashley Ismailovski


Thank you so much Ashley 


You’re very welcome - happy to help! 


Reply