How do I create a segment in HTML? | Community
Skip to main content
October 27, 2014
Question

How do I create a segment in HTML?

  • October 27, 2014
  • 2 replies
  • 1525 views

Hi, I am trying to code in some new segments and I have previously done this before but am struggling this time around. Am I corerct in thinking that I place div tags similar to this


<div class="mktEditable" id="edit_text_1" > ... </div>

around the segement Im wishing to create? As I have tried this but it has now blocked segment "Section 1" from being editable which is a problem as that segment contains the whole email. Any advice is appreciated, thank you.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Josh_Hill13
Level 10
October 27, 2014
Do you mean editable area or text block?

Yes, that code should work in an Email Template. Keep testing it. Usually you have to put it all around the section.

If you are trying to use Segmentations and Dynamic Content, that is not how it is done. See the Dynamic Content Tutorial in University.
October 27, 2014
For editable text to work you need to make sure that each editable "section/segment" has a unique id otherwise they don't work.  So in your example the first would be id="edit_text_1" and the second div would be id="edit_text_2".