Search code examples
htmlurlhtml-emailmailchimpnewsletter

Mailchimp: Editable links in the design view, how to change them?


I created a template with editable areas and it just works like a charm,

the thin is that i need to define few different links so they can be changed for each campaign,

I tried:

<a href="*|CUSTOM_URL1|*">A link</a>
<a href="*|CUSTOM_URL2|*">A link</a>
<a href="*|CUSTOM_URL3|*">A link</a>
<a href="*|CUSTOM_URL4|*">A link</a>

But then in the preview mode I have no option to edit this link,

Any idea how to set this custom url values for each campaign?


Solution

  • Thanks for clarifying in the comments.

    I don't think you're looking to use merge tags, since you're just trying to change links in the template, not necessarily insert subscriber-specific info. So, the focus should just be making the links in the template editable by the sender, in the MailChimp editor. This way, the sender can create a campaign, select the template and edit the regions/links that you want to be editable.

    To make a region editable, use the MailChimp template language. You can't make "a" tags themselves editable, but you can make a surrounding div or td editable.

    <td mc:edit="links">
    <a href="http://www.google.com">A link</a>
    <a href="http://www.mailchimp.com">A link</a>
    </td>
    

    You may also find the information in this answer helpful.

    MailChimp Editable buttons inline styling is overridden