search

Home  >  Q&A  >  body text

Change mobile menu breakpoints - WordPress Twenty Two Three Theme

WordPress Navigation Block - Twenty-Two-Three Theme

How to change CSS media query breakpoints so that the hamburger button appears on mobile devices and the full menu appears on wider screens?


The hamburger minimize menu can be opened from the following location Dashboard->Appearance->Editor:

P粉085689707P粉085689707272 days ago370

reply all(1)I'll reply

  • P粉476475551

    P粉4764755512024-03-27 00:14:46

    Add this to the child theme's CSS, changing the value in brackets:

    @media screen and (max-width: 767px) {
      /* hamburger button */
      .wp-block-navigation__responsive-container-open  {
        display: block !important;
      }
    
      /* full menu */
      .wp-block-navigation__responsive-container:not(.is-menu-open.has-modal-open) {
        display: none !important;
      }
    }

    reply
    0
  • Cancelreply