Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #503273

    Dear Enfold-Team,

    I’d like to change the max-width of my menu from 767px to 910px. At the width 910px the menu should change to the mobile-menu. I already tried to change the @media submenu css-code in the from the shortcode.css. I’m using an enfold-child-theme. But it didn’t work.

    How do I get this to work?

    Thx in advance,
    ehnatnor

    #503456

    Hi ehnatnor!

    So when the screen drops down to 910px you want to switch to the mobile menu correct? Add this to your custom CSS.

    @media screen and (max-width: 910px) {
    nav.main_menu { display: none !important; }
    #advanced_menu_toggle { display: block !important; }
    }

    Best regards,
    Elliott

    #503599

    Thanks Elliott,

    works fine. I added “#advanced_menu_hide” so that the menu-close-button alo shows up, if the mobile menu is open.

    @media screen and (max-width: 910px) {
    	nav.main_menu {
    		display: none !important;
    	}
    	#advanced_menu_toggle {
    		display: block !important;
    	}
    	#advanced_menu_hide {
    		display: block !important;
    	}
    }

    Greetings,
    ehnatnor

    • This reply was modified 9 years, 2 months ago by Jens.
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Responsive menu-width’ is closed to new replies.