paullacey78
12/1/2017 - 9:46 AM

GP Smooth scroll all anchors

<script type="text/javascript">
// Make jQuery WP friendly
(function ($) {

  // Initiate after document loads
  $( document ).ready(function() {
  
      // Custom function
      jQuery('#content a').click(function(){
        jQuery('html, body').animate({
            scrollTop: jQuery( jQuery(this).attr('href') ).offset().top
        }, 400);
        return false;
      });
    
  });
  
})(jQuery);
</script>