Use a different MENU on MOBILE with the Navigation block in WORDPRESS block editor

Use a different MENU on MOBILE with the Navigation block in WORDPRESS block editor

Dave on WP

2 года назад

19,065 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Haifeng Zhu
Haifeng Zhu - 17.09.2023 19:33

please make tutorial on how to make collapsible mobile menu

Ответить
Khalil Ch
Khalil Ch - 26.06.2023 09:39

Thank you for the advanced tips, Can we please change the svg for the burger menu? I need thicker lines I done my svg in illustrator, but I don't know how to replace them in wp, thanks again

Ответить
Arnold Crone
Arnold Crone - 12.04.2023 13:50

Great video! In the introduction you showed the original menu and how it soon became unwieldy because of the nested sub-menus. Is there a way to keep the new menu (the one for small devices) collapsed when the menu button is clicked, and only to open when the first level menu-items are clicked?

Ответить
Sohil S
Sohil S - 03.11.2022 10:22

Thanks, it was helpful.

Ответить
laursellis
laursellis - 02.09.2022 16:39

This is exactly what I needed, thank you! And very straight to the point.

Ответить
Gelio Castro Gracida
Gelio Castro Gracida - 05.07.2022 18:04

Is there a way to insert buttons inside the toggle mobile menu??

Ответить
David Ve
David Ve - 25.05.2022 13:30

Thanks! This helped as I was struggling to make a menu with a centered logo in the middle. I resorted in making a left side menu and right side menu which are hidden and replaced by a mobile menu through media queries. It's not ideal but I tried before to accomplish it with php, css & html where the result was a hit or miss, depending on the amount of menu items. The block theme way gives more and easier control over the exact presentation.

Ответить
Camilla Jordan
Camilla Jordan - 14.04.2022 13:40

Thanks for that. Under the display option in the site editor, you can choose to replace the hamburger icon by the word Menu. Is there a place you can change this to be more explicit for inexperienced users(e.g. Click here for options)

Ответить
JungleDred
JungleDred - 25.03.2022 14:08

Amazing video!! I am struggling though. How can I change when the mobile overlay activates... I want my mobile overlay to come on at at screen widths less than 800px but I just can't figure out how to change it :(

Ответить
CLGolden Webcode
CLGolden Webcode - 08.02.2022 17:12

This is great, Dave. I'm so glad to have this as an option until block theme editing matures. Question: why put two dashes in the class names? I was under the impression I should avoid that so as not to conflict with the custom variable markup.

Ответить
costdev
costdev - 08.02.2022 14:10

Great video, thanks Dave!

In my testing, both menus are hidden from 782px-783px - The second media query, `(max-width: 783px)`, should be 781px.

That way:
- The mobile nav is hidden from 782px and larger
- The desktop nav is hidden from 781px and smaller

Ответить
MCICrypto
MCICrypto - 02.02.2022 11:55

Two menus not the good way to make it actually you repeating yourself

Ответить
Visualmodo
Visualmodo - 29.01.2022 20:10

Truly good content!

Ответить
Mike Murphy
Mike Murphy - 29.01.2022 18:31

quality themes like kadence have had primary and mobile menus for a couple years now, I'm excited to try the navigation block for things like sub menus on different sections of a website.

Ответить
Dave on WP
Dave on WP - 28.01.2022 17:45

I appreciate this video was a little long, but achieving this requires a bit more of a deep dive. Did it work for you? Anything I missed?

Ответить