All Collections
Building Emails & Landing Pages
Adding Anchor Links using Custom HTML
Adding Anchor Links using Custom HTML

How to add anchor links to the emails & landing pages

Jessica Hamilton avatar
Written by Jessica Hamilton
Updated over a week ago

This feature requires a custom HTML block.

Knak’s mission is to empower our customers to build their assets in a no code environment, as such we removed the custom html block. If you’re struggling to build something please reach out to your CSM or our support team and we can advise you on the best path forward and/or help reenable this feature.

It's easy to add anchor links to your emails & landing pages using Knak's advanced editor.

Anchor links will work on buttons, text links and images.

What you want to do is add an HTML section directly above the content block you want to anchor:

Then in the HTML block, add this code;

<span id="anchorname"></span>

Then you want to go to your anchor link and set the hyperlink. Here's an example for text links:

For buttons and images, you would use the same URL that is shown above in the text link example.

Previewing anchor links

Anchor links won't work in the Knak preview screen, you would need to export or sync your content to see the anchor links working.

Anchor links in emails

Keep in mind that anchor links don't work in all email clients. Here is a breakdown on where you can expect them to work:

Good luck! You can do this!

Need more help? Contact support via live chat within Knak using the chat bubble in the bottom right corner or email support@knak.com

Did this answer your question?