• The menu I am using is large enough that it will not fit on iPads and below and I’d rather not try to adjust font etc. Rather I would prefer to make it the hamburger for anything say 1024 width and below. I’ve searched and I don’t see the CSS class or a way to do this.

    Any help is appreciated

    • This topic was modified 9 months, 2 weeks ago by spollock.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator jordesign

    (@jordesign)

    Hi @spollock – in the Twenty Twenty-Three theme I’d expect the menus to be using the Navigation block.

    If that’s the case in your site – there is a toggle to use the mobile/hamburger menu option in the settings of the block.

    https://www.ads-software.com/documentation/article/navigation-block/#display

    Thread Starter spollock

    (@spollock)

    Thanks yes that is what I am using. However I want the hamburger to show up on devices like iPads etc with a larger screen. Now it’s either on everywhere, or only phones. I want to be able to adjust the screen size that sees the hamburger.

    Kavya Gokul

    (@properlypurple)

    Hey @spollock! It’s possible to write some custom css to modify this behaviour. This is kind of messy, since the classes can change, but you can add some additional css like below:

    @media(min-width:1024px) {
      .wp-block-navigation__responsive-container:not(.is-menu-open) {
        background-color: inherit;
        display: block;
        position: relative;
        width: 100%;
        z-index: auto;
      }
      .wp-block-navigation__responsive-close
    {
      width: 100%;
    }
    .wp-block-navigation
    {
      --navigation-layout-justification-setting: flex-start;
      --navigation-layout-direction: row;
      --navigation-layout-wrap: wrap;
      --navigation-layout-justify: flex-start;
      --navigation-layout-align: center;
    }
      
      button.wp-block-navigation__responsive-container-open,
      button.wp-block-navigation__responsive-container-close {
        display: none;
      }
      
    }
    Thread Starter spollock

    (@spollock)

    Perfect, thank-you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hamburger Menu Icon, mobile size’ is closed to new replies.