Опис
Extending WordPress Navigation block with functionality to display classic menus.
What problem does it solve?
❓ Do you experience problems making your website navigation multilingual when using block theme (FSE – full site editing)?
❓ Are you using a plugin that modifies classic menu but not Navigation block and you are using block theme?
Classic Menu in Navigation Block plugin lets you display classic menus in Navigation block so you can gain from using classic menu modification plugins and yet display the menu with accessibility, customization and responsive features of Navigation block.
This method is particularly useful when building a multilingual website and your multilingual plugin does not handle Navigation block very well. You can simply „revert“ back to using classic menu, which multilingual plugins supports out of the box.
You can do changes to your classic menus and Navigation block will always display up to date version of the menu.
To speed things up the plugin also applies caching for your classic menus converted to blocks. This cache is updated every time you update your classic menu. If you are using a very dynamic classic menu modification plugin, you can even disable the cache.
Got a question or suggestion?
In case of any question or suggestion regarding this plugin, feel free to ask at support section, or at GitHub repository issues.
Снимци екрана
Постављање
- Unzip the plugin download file and upload
classic-menu-in-navigation-block
folder into the/wp-content/plugins/
directory. - Activate the plugin through the „Plugins“ menu in WordPress.
- Plugin works immediately after activation by adding a new settings options to WordPress native Navigation block in block and site editor. It also enables Appearance Menus admin screen for block themes (FSE – full site editing) and registers several menu locations.
ЧПП
-
How does it work?
-
- In Appearance create a classic menu and assign it to a desired menu display location, such as „Primary“ location. Menus
- Navigate to Appearance template part that displays your navigation – most likely it is a „Header“ template part. Editor Patterns All Template Parts and edit the
- In the template part content find the Navigation block (you may use a list view for this) and edit the block options to display the „Primary“ menu location (the menu location you’ve set in step #1).
- Save your changes and preview the results on the front-end of your website. Your Navigation block now displays your classic menu.
-
Depending on your multilingual plugin, you may experience some issues with your menus. Such as multiple current (active) menu items. To resolve these issues, try to disable block menu cache in Appearance
Menus Classic Menu in Navigation Block. -
Can I disable cache?
-
Yes, you can do so in Appearance
Menus Classic Menu in Navigation Block. This is helpful when your multilingual plugin renders classic menus dynamically. -
Does it work with Polylang plugin?
-
Yes.
-
Does it work with WPML plugin?
-
WPML can translate Site Editor and navigation block, so there is no need to use this plugin with WPML.
But if you decide to use Classic Menu in Navigation Block with WPML, make sure to disable the block menu cache (Appearance
Menus Classic Menu in Navigation Block „Block menu cache“), and translate the modified block theme templates and/or template parts (WPML Translation Management, or check the WPML documentation for more info). -
Where are plugin options?
-
You can find them at Appearance
Menus Classic Menu in Navigation Block.
Прегледи
Сарадници и градитељи
Classic Menu in Navigation Block је софтвер отвореног кода. Следећи људи су допринели овом додатку.
СараднициClassic Menu in Navigation Block је преведен на 2 језика. Хвала преводиоцима за њихове доприносе.
Преведите Classic Menu in Navigation Block на свој језик.
Заинтересовани сте за градњу?
Прегледајте код, проверите SVN складиште или се пријавите на белешку градње преко RSS-а.
Белешка о изменама
Please see the changelog.md
file for details.