Contact: Add Scroll Top and `siteorigin_widgets_contact_scrollto_offset` filter
This PR adds the Scroll Top setting to the contact global settings, which allows users to disable the scroll after submission, and the siteorigin_widgets_contact_scrollto_offset filter to control the scroll offset of the scroll.
You can test siteorigin_widgets_contact_scrollto_offset using the following snippet:
add_filter( 'siteorigin_widgets_contact_scrollto_offset', function( $offset ) {
return 200;
} );
Thanks, mate. When I enable Scroll, I'm not seeing any movement. Can you confirm that the setting is working in both states for you?
@AlexGStapleton Do you perhaps want to send me a build for this PR? My last test above didn't seem to be functioning properly. I was using a build.
Fixed by the last two commits. Build.
Thanks, mate. The base functionality is working. Can you confirm the filter is working for you?
add_filter( 'siteorigin_widgets_contact_scrollto_offset', function( $offset ) {
return 200;
} );
Resolved.
How does that look?