• Resolved Handyann

    (@handyann)


    Hi. Could you please tell me how I can link a button to a section of a page. I have a long page with FAQ’s at the bottom and want to link to them from much further up the same page.
    Thank you!:-)

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Bas Schuiling

    (@basszje)

    You can use the # character to link to section provided they have an ID tag.

    See this page on how that works exactly: https://www.w3docs.com/snippets/html/how-to-create-an-anchor-link-to-jump-to-a-specific-part-of-a-page.html

    The #link part you can add to the URL field of the button.

    Thread Starter Handyann

    (@handyann)

    Thank you for your fast reply.

    I’m not very good with code (which is why I was so pleased to find your buttons!) and I know this should be simple, but I’ve added the id to the page (I think!) and the link to the button URL and it’s not skipping down the page to the right section but is instead just opening the whole page from the top.
    The button URL I’ve added is just the name of the page picked from the list of pages under the URL box and I’ve added /#faq at the end, as that’s the anchor id or at least what I intended it to be!
    The anchor id code I put in the text is <id=”faq”>. I must have got it wrong somewhere and I’d be really grateful if you could help me out please as I’m on a short deadline to get this done.
    Thanks so much!

    Plugin Author Bas Schuiling

    (@basszje)

    Hi,

    Don’t include the / perhaps? The link should be #faq, nothing more. I’m not sure what you are trying to do, but if you want no page load, than you just use the #link.

    If you still have problems, please post a link to the page and I can check why it’s not working.

    Thread Starter Handyann

    (@handyann)

    Hi again,
    I’ve set the anchor and that’s fine. I don’t know what I should put in the button URL box. Nothing I’ve tried works. Please help!
    Thank you

    Thread Starter Handyann

    (@handyann)

    Thanks so much for replying. I’ve solved the problem. Apparently, the page jump doesn’t work on the WP preview, although all the other button links do. I’ve just published the page and checked again before sending you the URL and the page jump works fine.
    Phew! I’m sorry I wasted your time and thanks again!

    Plugin Author Bas Schuiling

    (@basszje)

    Happy to hear it’s solved!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Link to section of a page?’ is closed to new replies.