//added and overwrite to jquery.v.js file jQuery.noConflict(); (function($) { $(function() { $(window).scroll(function(){ a = $(this); if(a.scrollTop() > 140){ $('#top-nav').addClass('fixed'); } else{ $('#top-nav').removeClass('fixed'); } }); $('.menu-primary-container a').click(function(){ var url = $(this).attr("href"); document.location.href=url; }); }); })(jQuery);