• I have a header menu with a button that I would like (once clicked) to bring users to the bottom of the page to my form. I would also like buttons on another page to anchor to this form on my home page as well. Thank you in advance

Viewing 1 replies (of 1 total)
  • Hi @brianwieber57,

    To achieve scroll on the same page upon a button click, you need to create id Tragets.

    Make sure your form has some unique id. For example:

    <div id="my-contact-form">
    
    <form>
    --- Your Contact form
    </form>
    
    </div>

    You can apply id either on div or on the form. Then you need to trigger click on your anchor tag like:

    <a href="#my-contact-form">Your Button</a>

    it will trigger your button to scroll on your home page. Hope this will work for you.

Viewing 1 replies (of 1 total)
  • The topic ‘Anchor a menu button to WP Form at bottom of page’ is closed to new replies.