Nice scroll to wordpress

wordpress runs jquery in noconflicts mode which means that you either need to write your JS code using the jQuery function call

$(document).ready(
  function() {
    jQuery("html").niceScroll();
  }
);

or the following syntax which define $

$(document).ready(
  function($) {
    $("html").niceScroll();
  }
);

Leave a Comment