jQuery Smooth Scrolling from CSS-Tricks
To use it, enqueue it from your theme’s
functions.php. You’ll probably also want to work with the fact that it uses
$ to mean “jQuery”—either by simply changing
jQuery throughout the code, or by doing the standard
$ mapping in WordPress.