• Resolved defenceb1t

    (@defenceb1t)


    Hi,

    I have a problem regarding Mailchimp (v 4.2) and WordPress (v 4.9.5) – both latest versions.

    When I insert the email on the input box and click on submit button, the page reloads and scrolls down so I can’t see the feedback message.

    I browsed for a solution and found the following:

    add_filter( ‘mc4wp_form_auto_scroll’, ‘__return_false’ );

    I pasted it into the child theme’s functions.php, but it still doesn’t work. In this case, upon clicking submit, the page instead reloads to the top.

    Can you please assist?

    Thanks

    PS.: Example of the desired behaviour (focus) https://imgur.com/zipAXUw.png

    • This topic was modified 6 years, 7 months ago by defenceb1t.
    • This topic was modified 6 years, 7 months ago by defenceb1t.
    • This topic was modified 6 years, 7 months ago by defenceb1t.
    • This topic was modified 6 years, 7 months ago by defenceb1t.
    • This topic was modified 6 years, 7 months ago by defenceb1t.

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

Viewing 1 replies (of 1 total)
  • Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello,

    The code you added disables auto scrolling. So when the page reloads it will reload on top. I would suggest removing the code and adjust the CSS in your theme to get the scroll position correct. This might be difficult but is the only way.

    You can also integrate our plugin with “Contact Form 7” which has ajax form submission so there is no scrolling or page reload required. Our premium version also offers AJAX form submission.

Viewing 1 replies (of 1 total)
  • The topic ‘Auto scroll ‘__return_false’ , doesn’t work.’ is closed to new replies.