Halbuki js dosyasını komple silmiştim olmamıştı

        // One Page        onePage: function() {            $('#menu-one-page li').filter(':first').addClass('current-menu-item');
            $('#menu-one-page li a').on('click',function() {                var anchor = $(this).attr('href').split('#')[1];
                if ( anchor ) {                    if ( $('#'+anchor).length > 0 ) {                        var headerHeight = 0;
                        if ( $('body').hasClass('header-fixed') )                            headerHeight = $('#site-header').height();
                        var target = $('#' + anchor).offset().top - headerHeight;
                        $('html,body').animate({scrollTop: target}, 1000, 'easeInOutExpo');                   }                }                            });
            $(window).on("scroll", function() {                var mode = 'desktop';
                if ( matchMedia( 'only screen and (max-width: 991px)' ).matches )                    mode = 'mobile';
                if ( mode == 'desktop' ) {
                    var scrollPos = $(window).scrollTop();                    if ( $('body').hasClass('header-fixed') ) {                        var headerHeight = $('#site-header').height();                        scrollPos = scrollPos + headerHeight + 15;                    }
                    $('#menu-one-page .menu-item a').each(function () {                        var link = $(this);                        var block = $( link.attr("href") );                        if (block.length) {                            if ( block.offset().top <= scrollPos && block.offset().top + block.height() > scrollPos ) {                                $('#menu-one-page li').removeClass("current-menu-item");                                link.parent().addClass("current-menu-item");                            } else {                                link.parent().removeClass("current-menu-item");                            }                        }                    });
                    $('#menu-one-page').each(function() {                        var $this = $(this),                            $parent = $this.parent(),                            $item, $sel, $active;
                        $sel = $this.parent().find('.selector');                         $active = $this.find('.current-menu-item');
                        if ( $active.length ) {                            $sel.css({                                left: $active.offset().left                                 - $parent.offset().left                                 + $active.width() / 2 - 3,                            });                        }                    })                }                    });        },

Bunları komple sildim oldu teşekkürler @BattalBarlas;