Support » Plugin: Modal Guten Block » Scrolls to top when custom element clicked

  • Resolved bhamilt

    (@bhamilt)


    Hi there, I’m using the custom element click so I can use an elementor button as a trigger, (“Keep Me Informed”). When I click it everything works well but it sets me back at the top of the page when you find it near the bottom. Is there a way to stay at the same spot on the page?

    Thanks!

    edit: there is also no confirmation screen after clicking subscribe–the modal just closes–ideas?

    edit 2: I didn’t change anything with it now the modal doesn’t come up at all, it only scrolls to the top of the page. I was able to pull it up successfully many times before…

    • This topic was modified 4 months, 3 weeks ago by bhamilt.
    • This topic was modified 4 months, 3 weeks ago by bhamilt.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author merbmerb

    (@merbmerb)

    What’s the button meant to do, it does not look like a modal is used anywhere on the page. The href for the button is set to # which means when clicked it will go to the top of the page, which is what it is doing. If you want it to launch a modal then create a modal and use the custom element trigger with the trigger class set to elementor-button-link. Hope that helps.

    Thread Starter bhamilt

    (@bhamilt)

    It did, partially.

    The issue with it not working I figured out was of course my error in having moved the modal block, but for my original question to make it not scroll to the top even when the modal is working, I gave the button’s section a custom class name and then linked the button href to that section. So the modal comes up and the page stays put.

    I still have the issue of no confirmation showing, but that seems to be because submit reloads the page. It closes the modal and scrolls back at the top…this is more of a js thing with the wp subscribe widget than this block.

    Thanks

    Plugin Author merbmerb

    (@merbmerb)

    Glad it helped, even if just a bit

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.