Hello,
I’m unable to get smooth-scroll to enable on a button in my hero.
I’ve ticked the enable smooth-scroll box.
My button looks like this:
<p><a class="button smooth-scroll" href="#consult">Call to Action</a></p>
And I’ve added and enabled the recommended PHP snippet:
add_filter( 'generate_smooth_scroll_elements', function( $elements ) {
$elements[] = 'a[href*="#"]';
return $elements;
} );
And still I get no smooth-scroll effect with my button. Any suggestions?