Forum Replies Created
-
AuthorPosts
-
LatinadeideasMember
Hi guys! I figured out.
I hope this is useful for someone. Just changed the js for this one. Naming only the menu I need to be responsive, it excldes the other menu I placed inside the header.it feels good to solve this task!
jQuery(function( $ ){
$("header .header-widget-area .genesis-nav-menu, .nav-primary .genesis-nav-menu").addClass("responsive-menu").before('<div class="responsive-menu-icon"></div>');
$(".responsive-menu-icon").click(function(){
$(this).next("header .header-widget-area .genesis-nav-menu, .nav-primary .genesis-nav-menu").slideToggle();
});$(window).resize(function(){
if(window.innerWidth > 768) {
$("header .header-widget-area .genesis-nav-menu, .nav-primary .genesis-nav-menu, nav .sub-menu").removeAttr("style");
$(".responsive-menu > .menu-item").removeClass("menu-open");
}
});$(".responsive-menu > .menu-item").click(function(event){
if (event.target !== this)
return;
$(this).find(".sub-menu:first").slideToggle(function() {
$(this).parent().toggleClass("menu-open");
});
});});
July 21, 2015 at 2:11 pm in reply to: How to disable responsiveness of secondary navigation menu only ? #160025LatinadeideasMembermany thanks, Cristoph. I will open a new one.
I repositioned secondary nav into header. This may be the reason (I guess)July 21, 2015 at 7:19 am in reply to: How to disable responsiveness of secondary navigation menu only ? #159954LatinadeideasMemberjQuery(function( $ ){
$("header .genesis-nav-menu, .nav-primary .genesis-nav-menu").addClass("responsive-menu").before('<div class="responsive-menu-icon"></div>');
$(".responsive-menu-icon").click(function(){
$(this).next("header .genesis-nav-menu, .nav-primary .genesis-nav-menu").slideToggle();
});$(window).resize(function(){
if(window.innerWidth > 768) {
$("header .genesis-nav-menu, .nav-primary .genesis-nav-menu, nav .sub-menu").removeAttr("style");
$(".responsive-menu > .menu-item").removeClass("menu-open");
}
});$(".responsive-menu > .menu-item").click(function(event){
if (event.target !== this)
return;
$(this).find(".sub-menu:first").slideToggle(function() {
$(this).parent().toggleClass("menu-open");
});
});});
July 21, 2015 at 7:09 am in reply to: How to disable responsiveness of secondary navigation menu only ? #159953LatinadeideasMemberI am trying to disable the responsive only for secondary in paralax pro theme.
I found that you have to modify the js inside the theme, but even if there is not nav-secondary declared here, the menu transforms into burger. -
AuthorPosts