• Resolved 5high

    (@5high)


    I’m sure this is a very basic question, but I can’t for the life of me find how I can link to an anchor I’ve inserted on the same page – the link/advanced link buttons now don’t show any anchor (or library of link) from which to pick. In fact it looks totally different. I realise that that it’s all had a major change with wp 4 and your change to WP Edit, but I’m totally stuck with this! many thanks for any suggestions.

    https://www.ads-software.com/plugins/wp-edit/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Josh

    (@josh401)

    Hi there, sorry for the delay.

    Yeah there really isn’t an easy way to do this anymore.
    WP handles the ‘anchor’ button (not manipulated by my plugin). It seems the functionality for the ‘anchor’ button has been changed.

    I’ll take this into consideration; and see if there is an easy way I can get around this.

    For posterity:
    1) Creating an anchor while highlighting an element will remove that element (be careful).
    2) Instead, create the anchor just in front of the element you wish to anchor to.
    3) This will create an `<a id=”ANCHOR_NAME”></a>’ element.

    Now, the trick comes from how to identify these on a post/page. I could search for empty <a> elements; and create an anchor list from those id’s.

    I’ll have to experiment; and see what I can do.

    In the meantime; please let me know if you find a workaround, or have any other questions.

    Thank you!

    Thread Starter 5high

    (@5high)

    Hi Josh,

    Thanks for getting back to me – and it’s sort of nice to know that it can’t do what I thought it could! but a pity anyway. I’m afraid I was out of time and so just set up links to new pages – not the cleanest or quickest of ways, but acceptable for now. But I’ll keep an eye on this thread in case something changes.

    Cheers.

    Plugin Author Josh

    (@josh401)

    No worries at all.
    Sorry there was no ‘quick fix’.

    I know you are not alone.
    Anchors are relatively popular.. and I remember some ‘chatter’ when the default functionality was changed.

    I’ll work on something.. and post back here when ready.

    Thanks bunches!

    sjacksonY

    (@sjacksony)

    Having this issue as well. Here is a link that helped me resolve the problem.
    https://www.ads-software.com/support/topic/how-do-i-create-an-anchor-link-which-autoscrolls-to-a-portion-of-the-site?replies=2
    I created an anchor using the editor.
    Then when I wanted to link to it, I used a link to the page and added the hashtag”anchortitle” to the end of the link address in the text editor.

    Thread Starter 5high

    (@5high)

    Thanks for your link. I’ve recently found some time to research it too and have a couple of other useful articles which explains how to do this within a page, between pages and between sites too…
    https://www.echoecho.com/htmllinks08.htm
    https://www.w3schools.com/html/html_links.asp
    https://help.typepad.com/anchor-tags.html
    sometimes I find it clearer to use multiple souces to get it really straight in my head!
    Hopefully useful to others too.
    Cheers.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can't find how to link to Anchor’ is closed to new replies.