• I’ve tried using standard HTML and I can create a link to page, but I can’t link to a part of a page, like an anchor in hml. Does anyone have any ideas how to do this please?

Viewing 4 replies - 1 through 4 (of 4 total)
  • <a href="#foo">Foobar</a>
    [...]
    <h3 id="foo">Foobar</h3>

    So you need:

    1. An element with an id that acts as the anchor
    2. A link that uses the format #anchor_id

    What esmi said. Implement creation of page anchors using “HTML view” in your Write Panel.

    Thread Starter boristehmoggy

    (@boristehmoggy)

    I tried that, it goes to the corect page, but doesn’t recognise the anchor on that page….
    I just realised your anchor uses hash too, I think I used the html element.
    I’ll check, that’s probably the problem.
    Much appreciations.

    In order to have an anchor work, you must link to it, like this:

    <a href="#foo">Foobar</a>
    [...]
    <h3><a name="foo"></a>Foobar</h3>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to create page anchors in WordPress.’ is closed to new replies.