Archived topic
In-Post Anchor Links
3 replies · Started by Simon on August 2, 2021
Hi,
I see there's a HTML anchor box for headings blocks. I might be missing something but how do I link to it, say if I were to create a custom table of contents?
For example:
Here's 4 steps on starting a blog:
Step 1 (links to step 1)
Step 2 (links to step 2) and so on...
I can't use a table of contents plugin as I'm only looking to link to specific H2 headings. I realise this may have to be done manually for each post but not sure how to link to it.
Apologies for the convoluted question and thanks for your help in advance! :)
Hi there,
all blocks have the HTML Anchor field - its part or WP :)
Give the element that will be jumped to a HTML Anchor ID eg. step-1
Then in your list of links ( table of content ) give the link a URL of #step-1
The link has to be the same as the Anchor ID with a # before it.
Brilliant, thank you. I knew I was missing something basic! :)
You're welcome