• Resolved frankjkeane

    (@frankjkeane)


    Hi,

    Thanks for viewing.

    I am using this to link to a h2 tag with id=executive

    <a href="index.php?page_id=6#executive">

    anchors are working locally within the page but not from another page, the id is lost.

    Any suggestions?

    Many thanks

    Frank

Viewing 3 replies - 1 through 3 (of 3 total)
  • vtxyzzy

    (@vtxyzzy)

    What is the URL when you click on that link? I think WP tries to resolve relative URLs and that may be causing the problem. Try using absolute URLs:

    https://yourdomain.com/index.php?page_id=6#executive

    Thread Starter frankjkeane

    (@frankjkeane)

    Hi, yeah that seemed to be it, working now.

    Thanks for the reply!

    Thread Starter frankjkeane

    (@frankjkeane)

    Resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Link to anchor on another page.’ is closed to new replies.