How to disable jQuery tabs when customizing the theme

Found a solution here.

Just add this js code:

var makeTabs = function(selector) {
    $( selector )
        .find( "ul a" ).each( function() {
            var href = $( this ).attr( "href" ),
                newHref = window.location.protocol + '//' + window.location.hostname +
                    window.location.pathname + href;

            if ( href.indexOf( "#" ) == 0 ) {
                $( this ).attr( "href", newHref );
            }
        })
    $( selector ).tabs();
};

makeTabs( "#tabs" );