• Resolved markus3

    (@markus3)


    Dear Supporters,
    On one text page (page 1) I have several chapters with text.
    1. How can I link a word on another page (page 2) to a chapter heading on page 1?
    2. How can I link a word on page 1 to a chapter heading on page 1?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Andrew Misplon

    (@misplon)

    Hi Markus

    Thanks for reaching out.

    In both cases, you can use the full URL.

    You can create an anchor as follows:

    <h3 id="heading-three">Heading Level Three</h3>

    You can link to the above anchor as follows:

    <a href="https://ukraine.b?rlocher.de/#heading-three">Heading Three</a>

    This example assumes the anchor is on the home page. Put # in front of the anchor anchor ID when linking to it. Use the page URL before the anchor tag.

    Thread Starter markus3

    (@markus3)

    Hi Andrew, thanks for your replay.

    Do I understand right, that WP does /not/ use <h1> to <h7> automatically as “anchor”?
    So everybody needs to set each “anchor” by hand?

    a) Is this an error?
    b) Or is this a still missing feature?

    If b): Is there a featutre request already? where?

    Aim:

      Each headline (coded as <h1> to <h7>) works similar to an “anchor”.

      Each headline can be linked like https://<domain>/<page-name>#<headline>

    • This reply was modified 2 years, 11 months ago by markus3.
    • This reply was modified 2 years, 11 months ago by markus3.
    Plugin Support Andrew Misplon

    (@misplon)

    Hi, sure, no problem.

    Do I understand right, that WP does /not/ use <h1> to <h7> automatically as “anchor”?

    That’s correct. WordPress doesn’t automatically add anchor tags to heading tags.

    So everybody needs to set each “anchor” by hand?

    Yes, in the event you need anchor tags they’ll need to be manually inserted or automatically inserted using a plugin or custom code.

    a) Is this an error?

    No, it’s not an error.

    b) Or is this a still missing feature?

    This fits under custom/specific functionality not currently offered in the WordPress core or Page Builder.

    We’re adding anchors in our documentation using custom coding. Example URL: https://siteorigin.com/corp-documentation/one-page-website/. You might be able to find a plugin that can help such as https://www.ads-software.com/plugins/add-anchor-links/.

    You can also consider https://www.ads-software.com/plugins/easy-table-of-contents/.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Internal link to a headline / chapter heading’ is closed to new replies.