Can I put internal links in my newsletter, for example for a table of contents?
If you want to add a table of contents to your newsletter, you can use the Content block in the drag & drop editor for this.
Automatically generating a table of contents
Using the Content block, you can put a table of contents in your newsletter. All headings are automatically put in a Text block or Heading line. If you do not want a heading to appear in the table of contents, go to the block that contains the title, head to the Settings tab (left side of the screen) and select, 'Hide in table of contents'.
Under the Design tab, you can choose the layout of your text, the box and the outline for the desktop and mobile phone displays each. In addition, you can indicate if you want to hide the table of contents in the desktop and/or smartphone display. You can also opt to copy the formatting to possible other content blocks (identical in content), and you can determine if you want to use the layout as a standard for any new buttons you place.
Tip: with a custom template (Joe type), you can also automatically generate a table of contents and place it in your newsletter.
Placing internal links (anchors) in your newsletter
Do you want to place internal links in your newsletters yourself? You can, but you have to work in the source code of the text for this. You will create so-called anchor links. For this, you designate a certain part of your text as an anchor (the place you want to direct your reader to, for example your newsletter's title). Then, you have to create a link to the anchor (for instance by writing 'to top').
Here's how to place an anchor into a paragraph or block:
- Click on the text block and click 'Source' next (left side of the screen).
- Add this code: <a name="top"></a>. You can see an example of this in the image below.
- The name for each text block must be unique. For example, article-1, article-2, or top.
Here's how to create a link to a text or block:
- First, you select the text that has to link to a specific item, for instance the last sentence in an article.
- Click the chainlink icon, and place as link:
#top
Tip: do you not want the link underlined? Go to the 'Design' tab and select 'Text'; you can disable underlining here.
You can find more information about creating internal links (anchor links) here on W3docs.