Hello,
I use GP’s sticky, slide out menu.
I recently enabled smooth scroll. And targeted it on my anchor links using the code in your documentation:
add_filter( 'generate_smooth_scroll_elements', function( $elements ) {
$elements[] = 'a[href*="#"]';
return $elements;
} );
The scroll works great on the anchor links!
But, now every time I open the slideout menu it scrolls me to the top of the page. I’d rather just the default behaviour applied, so opening the slide out menu does not bring you back to the top of the page.
Is there a fix?
Thank you!