Site logo

[Resolved] In-Post Anchor Links

Home Forums Support [Resolved] In-Post Anchor Links

Home Forums Support In-Post Anchor Links

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1881187
    Simon

    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! 🙂

    #1881348
    David
    Staff
    Customer Support

    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.

    #1881732
    Simon

    Brilliant, thank you. I knew I was missing something basic! 🙂

    #1881869
    David
    Staff
    Customer Support

    You’re welcome

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.