【问题标题】:Change mobile menu breakpoint - WordPress Twenty-Twenty-Three theme更改移动菜单断点 - WordPress Twenty-Twenty-Three 主题
【发布时间】:2023-01-21 17:42:29
【问题描述】:

WordPress 导航块 - 20-23 主题

如何更改汉堡按钮在移动设备上显示的 CSS 媒体查询断点和更宽屏幕上的完整菜单?


汉堡最小化菜单可以从 仪表板->外观->编辑器:

【问题讨论】:

    标签: css wordpress wordpress-theming media-queries


    【解决方案1】:

    将此添加到您的子主题的 CSS:

    @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;
      }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-01-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-05
      • 2018-06-06
      • 2023-03-14
      • 1970-01-01
      相关资源
      最近更新 更多