Skip to main content
Question

Add Granular content to email layout

  • October 4, 2024
  • 1 reply
  • 29 views

Hi,

From https://customer.io/docs/journeys/3-layouts-and-customerio/ it seems like the only way to add content to a layout is using {{content}}.

However, I have an usecase where I want to insert a particular text before an image and particular text after an image. 

The image is part of the email layout which is static, however the contents can vary. In other words, I want to do something like this:

{{content_before}}

<yield to template layout>

{{content_after}}

 

How do I do this?

Thanks,

Mayuresh

1 reply

Felix
  • Novice
  • 222 replies
  • October 4, 2024

Hey Mayuresh,

can you use Liquid inside the layout / inside the {{content}} to add the text before and after?

 

Personally I would recommend you to use the drag & drop editor instead the rich text / code editor. It has the same “functions” and is more user friendly in case you don’t want to code something special.

 

Hope that helps,
Felix


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings