• Resolved afizan75


    Hi there

    How can I deactivate scrolltop function> I found it really annoying. There is no option in the back end.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey there! 👋

    HappyForms doesn’t include a visual control for that, but you can use a simple PHP snippet. Just pop the below code in your functions.php file:

    function happyforms_custom_form_attributes( $attrs ) {
        $attrs['data-happyforms-scroll-disabled'] = true;
        return $attrs;
    add_filter( 'happyforms_get_form_attributes', 'happyforms_custom_form_attributes' );

    That should do the trick. Let us know how you go!

    Thread Starter afizan75


    Thank you, sir. The snippet work like a charm.

    Wonderful! 👏

    We’re here in case anything else crops up.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to deactivate Scrolltop function?’ is closed to new replies.