-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigation block shows different menu in admin and different on frontend #50706
Comments
@kubiqsk We've been working on improving the mechanics around this in the Gutenberg Plugin. Would you be able to test the same steps with the latest Gutenberg Plugin active and advise if the issue is still present? I will test also. |
@getdave Hi, thanks, yes it works with activated Gutenberg, but I've tried to use it on production website in last years a few times and it often broke the web after update... So ss it safe now to use it on production websites? Because currently this Navigation block is not working in WordPress, so I have 2 options - use Gutenberg plugin or use some custom block for menus. |
That's good to know. It's likely the result of #48698. I think it's going to be extremely difficult to backport any fixes to WP 6.2 for this feature. I assume you are making heavy use of it because your work flow is "make changes in the classic menus screen and then import into a Nav block"?
Unfortunately due to gradual accummulation of unrelated changes we did see some regressions. We are very conscious of that so that's why we've tried to resolve it by:
As a result we have greater confidence in the stability of the feature for WP 6.3.
That's a difficult question to answer definitively. In general yes. However, there can always edge cases and thus bugs we've not considered or which are not currently covered by tests. However, our approach to this block is that each time we find a regression/bug we add test coverage alongside the fix. So we can only commit to the fact that the block will becoming increasingly stable.
There is no plan for this. The experience is designed as a one way import only. This is why we've been at pains to label it as such within the UI (e.g.
That's understandable. I would say two things:
I appreciate the old menus screen had many features users enjoyed. If there's anything specific you'd like to highlight, we're always grateful to receive specific Issues about those features. |
Thank you for detailed answer. I'll try to use Gutenberg plugin on new website I'm creating right now and let's see... :) About that classic menu - On many websites we're using plugins that allow you to list terms or posts in menu dynamically, so when they change in WP the will automatically change also in menus. That requires also special fields for menu items. Take a look eg. here https://www.youtube.com/watch?v=U7gQ4HmcUTs&t=207s |
You can do something similar by inserting a Currently the answer is no but it is functionality we need to add 🙏 |
Actually @kubiqsk I'd greatly value any additional context and information you have around your requirement for auto menus. Can you provide some specific examples of what you're trying to achieve? Which types of content are you trying to list out...etc? The more specific the better so we can better understand the requirement. Would be much appreciated. |
When I activate Gutenberg plugin, then fonts are not loading in admin editor and it's also throwing console error Eg. I have many clients that want to list all top-level WooCommerce categories in the menu, then maybe in footer they have another menu called Special discounts and there they want to list first 6 products from this category... or there are many other usecases, like some most read blog categories, or even with that plugin you can easily create login/logout and profile menu items that will disappear when they are not needed and that's needed on almost every eshop or other web with login access and many other situations |
After many months and many new WP versions I gave another try to this Navigation block and it's simply not working... |
I've re-tested this and I cannot replicate the Issue being described. Process to replicate:
Screen.Capture.on.2024-11-18.at.16-15-04.mp4The only thing I can think of that might cause the Navigation to be empty would be if all the Classic Menu items linked to draft Pages. That's hard to do but not impossible. I tested this on my local machine and it does indeed render an empty I'd be happy to debug this further if it's possible to share steps to replicate the issue describe. For now however, I'm going to close this out. |
Description
I have clean WP install and default 2023 theme active and no plugins active.
I did just one change - I created
functions.php
withadd_theme_support('menus');
- that's all.Then I'm trying to create footer layout with 4 menus and I want to import these menus from old WP
/wp-admin/nav-menus.php
and the behaviour is unpredictable.Step-by-step reproduction instructions
/wp-admin/nav-menus.php
Screenshots, screen recording, code snippet
https://share.kubiq.sk/2023-05-17_17-18-42.mp4
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: