Created
August 16, 2018 02:31
-
-
Save generatepress/fae398a39bb8802364e623836941eab4 to your computer and use it in GitHub Desktop.
Apply the GPP smooth scroll to all hash links.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'generate_smooth_scroll_elements', function( $elements ) { | |
$elements[] = 'a[href*="#"]'; | |
return $elements; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment