WordPress.org

Forums

[resolved] Jump to page anchor (4 posts)

  1. jmessick9
    Member
    Posted 11 months ago #

    I have several buttons on my home page that link to a page. When the user clicks on the link http://link.com/services/#membership, I need it to goto that elements.

    Below is what I have in my page about 6 different tag's, but it doesn't goto that element.
    <h1 style="text-align: center;" name='membership'>membership</h1>

    Any Ideas on how to achieve this?

  2. Try this instead:

    <h1 style="text-align: center;" id="membership">membership</h1>

    (use id, not name)

  3. jmessick9
    Member
    Posted 11 months ago #

    wow, I had tried that before and it did not work, seems to do the trick. Thanks!

  4. You're welcome!

Reply

You must log in to post.

About this Topic