Arkadaşlar tema voice teması sıkıntı mobilde navigasyonu açınca menu navigasyonu ile top navigasyonunu çekiyor bu top navigasyonu nasil iptal edebilirim mobil için ?
Wordpress navigasyon hatası |
3 Mesajlar | 489 Okunma |
Responsive navigation */
$('#vce-responsive-nav').sidr({
name: 'sidr-main',
source: '#site-navigation',
speed: 100
});
var mobile_nav = $('#sidr-id-vce_main_navigation_menu');
if ($('#vce_top_navigation_menu').length) {
var top_navigation = $('#vce_top_navigation_menu').children().clone();
if ($('.sidr-class-search-header-wrap').length) {
top_navigation.insertBefore(mobile_nav.find('.sidr-class-search-header-wrap'));
} else {
mobile_nav.append(top_navigation);
}
}
if ($('#vce_social_menu').length) {
var social_navigation = $('#vce_social_menu').clone().addClass('clear');
mobile_nav.append($('').append(social_navigation));
}
$("body").on('touchstart click', '.vce-responsive-nav', function(e) {
e.stopPropagation();
e.preventDefault();
if (!$(this).hasClass('nav-open')) {
$.sidr('open', 'sidr-main');
$(this).addClass('nav-open');
} else {
$.sidr('close', 'sidr-main');
$(this).removeClass('nav-open');
}
});
$('#vce-main').on('click', function(e) {
if ($('body').hasClass('sidr-open')) {
$.sidr('close', 'sidr-main');
$('.vce-responsive-nav').removeClass('nav-open');
}
});
$('.sidr ul li').each(function() {
if ($(this).hasClass('sidr-class-menu-item-has-children')) {
$(this).append('');
}
});
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
$('.vce-menu-parent').on('touchstart', function(e) {
$(this).prev().slideToggle();
$(this).parent().toggleClass('sidr-class-current_page_item');
});
$('.soc_sharing').on('click', function() {
$(this).toggleClass('soc_active');
});
} else {
$('.vce-menu-parent').on('click', function(e) {
$(this).prev().slideToggle();
$(this).parent().toggleClass('sidr-class-current_page_item');
});
}