Checkout – doesnt scroll to error due to sticky header
-
When someone wants to go through the checkout and there will be error messages then it scrolls to the top and shows the error messages but due to the sticky head the error messages are hidden behind the header. I tried to put in some custom JS code to set an offset for the scroll-to-notices part but that didnt work:
// overwrite woocommerce scroll to notices $.scroll_to_notices=function( scrollElement ) { var offset = 300; if ( scrollElement.length ) { $( 'html, body' ).animate( { scrollTop: ( scrollElement.offset().top-offset ) }, 1000 ); } };
Do you have any idea how i can solve that? Because customers cant see the error messages.
Thanks a lot for your help.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Checkout – doesnt scroll to error due to sticky header’ is closed to new replies.