Is there a way to only allow a user to edit a link's destination, and not the link itself, using MailChimp's template language? There doesn't seem to be anything about this specific situation in their documentation.
For example:
<a href="link.html" target="_blank">
<img src="button.gif" alt="Button Name" />
</a>
So I want to allow the user to ONLY edit "link.html
" to point somewhere else, as the link button never changes.
Unfortunately, to make matters more complicated, there's an unknown number of links in the template (thanks to the use of mc:repeatable
), so the solution cannot be hard-coded to a specific link.
Is this possible?
The campaign page for a sent campaign cannot be edited or updated in any way, but you can edit the URL for a sent campaign up to two times. If you need to share a link to the campaign page, we recommend you replicate your campaign, make your edits, and send it to yourself via a segment.
Anchor links allow you to build your own table of contents with custom wording, link style, and formatting. In this article, you'll learn about the two ways you can add a table of contents to your campaign.
Insert the text you want to link and highlight it. Click the link icon in the toolbar. In the Insert or Edit Link pop-up modal, click the drop-down menu and choose Web address. Enter the click-through link in the Web address (URL) field.
I ran into exactly the same issue today. It seems the individual href attribute cannot currently be made dynamic using merge tags in Mailchimp.
The best workaround I've found is to create an editable field (span) within the repeatable section that contains the link and button image.
<tr mc:repeatable>
<td width="600px">
<span mc:edit="offer_link">
<a href="http://www.mywebsite.com" target="_blank">
<img src="http://www.mywebsite.com/images/button.png" width="100" height="30" alt="view offer button">
</a>
</span>
</td>
</tr>
When the sender creates the email from the template, they can click the '<>' icon in the editor to edit the html for the link. They'll need some very basic HTML knowledge but it'll do the trick.
In your MailChimp template, instead of using <a href="link.html" target="_blank">
, use a Merge Tag instead. So for example:
<a href="*|CUSTOM_URL|*" target="_blank">
Follow these steps to complete the set up:
Lists
> Create Forms
and add a new input field.Field Settings
.Custom Url
.Field Tag
to CUSTOM_URL
Required Field
.Field Visibility
to Hidden.Default Merge Tag Value
to http://www.example.com/new-link.html
(in other words, this is where the SENDER would input the absolute URL that you want your link.html
changed to before sending each Campaign.When the Campaign is sent, it will automatically fill in this default link (new-link.html
) for the href
attribute on the link without the SENDER actually modifying the campaign.
Just be sure that no one actually enters a value into this field when adding subscribers or it will override the default value set by the SENDER.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With