Navigationsmenü

GutenKit Nav Menu block is a robust solution to easily add and customize menu and submenu items on the Gutenberg editor. Also, it has features to design a mobile menu for your mobile devices.

Go through this doc to learn how to use GutenKit Nav Menu block from your block editor.

How to Use GutenKit Nav Menu Block? #

Get started with installing the GutenKit plugin from your WordPress dashboard. Then, drag & drop the Nav Menu to the block editor screen.

Step 1: Add GutenKit Nav Menu Block #

The first step of our journey involves installing the GutenKit plugin. Then, do the following things:

  • Take a new page or go to the existing one.
  • Enable the block editor and find the “+” icon at the top of the editor screen.
  • Clicking it will open the block library.
  • Suchen Sie nach dem GutenKit Nav Menu.
  • Once it appears, click or drag & drop the block in the editor screen.

Step 2: Add Navigation Menu Item #

After you add the Nav menu block on the editor screen, it’ll automatically show up with all the published pages as navigation menu items. And, there is a “+” icon to add a new menu item. 

Now, if we focus on this block’s settings, it has a few more functions than other GutenKit blocks. Click on a navigation item on the editor screen and its settings control will appear in the right sidebar. 

Here you will see:

Inhalt: #

  • Menu Type: Choose a menu type between custom and dynamic.
  • Select Dynamic Link: Choose the page you want to link with this menu item from the dropdown.
  • Add Custom Label: Toggle this button if you want to add a different label for the menu item. Enabling it will reveal a Custom Label field to enter your custom text.
  • Add SubMenu: Click this toggle button to enable sub-menu. A “+” icon will appear below the menu item on the editor screen. You will also see a new option named “Untermenüanzeige” in the setting area.

Untermenüanzeige: #

  • Submenu indicator Icon: Choose an icon from the library or upload your SVG file as the submenu indicator icon.
  • Indicator Icon Size: Use the slider to define the size of the submenu indicator icon.
  • Indicator Left Space: Adjust the gap between the menu name and icon using this slider.
  • Grenze: Give a border around the icon and select its color, style, and thickness.
  • Polsterung: Add inner space within the icon border.
  • Grenzradius: Set the roundness of the icon border.

Add Sub-menu Item: #

Similar to the menu item, clicking the sub-menu item will open the settings in the right sidebar.

  • Menu Type: Choose a menu type between custom and dynamic. 
  • Menu Label: Enter the name of your menu.
  • Menü-Link: Insert the link you want to drive visitors 
  • Add Sub Menu: Enable this option to add another menu item under the submenu. This action will also open the “Submenu Indicator” icon like before.

Next, we’ll move on to the parent settings of a menu or submenu item. To do this, click the “Go to Parent” option from the menu or submenu settings. But, menus and submenus have different functions.

While clicking on the “Go to Parent” option from a Untermenü item, you will see different customizing options for a submenu in the Einstellungen & Stil tabs.

Unter dem Einstellungen option:

  • Behälterbreite: Use this slider to increase the submenu width to the right side.

Gehen Sie jetzt zum Stil Tab:

Unter dem Submenu Wrapper:

  • Ausrichtung: Define the submenu text position within the submenu wrapper.

Unter dem Submenu Item:

  • Item Space Between: Use this slider to define the gap between submenu items.
  • Typografie: Use these settings to change the font family, weight, transform, style, decoration, spacing, etc.

You can apply the following settings individually to the Normal, Schweben, Und Aktiv modes for the submenu.

  • Hintergrund: Give a between a solid color or gradient background type.
  • Textfarbe: Select a text color using the color picker.
  • Grenze: Choose a color for the border.
  • Polsterung: Enter a value manually to increase spaces inside the border.
  • Grenzradius: Use this option to define the roundness of the border.

Selecting the “Go to Parent” option from a Speisekarte item will take you to the global block settings (Content/ Style/ Advanced). 

Step 3: Configure Menu Settings #

In this part, we’ll start to function the parent menu settings.

Menu: #

  • Menu Breakpoint: Control the responsiveness of the menu by selecting the device type or adding a custom value. This means devices smaller than your given value or selecting type will show a hamburger or mobile menu.
  • Scroll Lock For Offcanvas: Disable the scrolling when the menu is open.
  • Inhalt ausrichten: Set the menu item text position based on six different options.
  • Elemente ausrichten: Align the entire nav menu to different positions.

Step 4: Configure Mobile Menu Settings #

Now, we’ll configure the menu for mobile devices.

  • Mobiles Menü-Logo: You can add a different logo for the mobile device using this option.
  • Menü-Link: Include the default home page link or a custom link with the mobile menu logo.
  • Hamburger-Symbol: Choose an icon from the icon library or upload your SVG file to add an icon for the hamburger menu.

Step 5: Style Navigation Menu #

Kommen Sie nun zum Style Tab. From here, you’ll get all the settings for customizing the navigation menu. 

Menu Wrapper: #

  • Menu Background: Add a solid color, gradient, or an image for the menu background.
  • Sidebar Background: Choose a background type between solid and gradient.
  • Sidebar Menu Content Align: Select the position of the sidebar menu text.
  • Polsterung: Adjust the inner space around the navigational menu.
  • Grenzradius: Define the roundness of the border.

Menu Items: #

  • Menu Item Spacing: Adjust the horizontal gap between menu items.
  • Typografie: Get all the typography customizations for the menu items.
  • Hintergrundtyp: Use a background type between color and gradient.
  • Textfarbe: Apply a color to the menu text.
  • Grenze: Give a border to the menu item and define its style, color, and thickness.
  • Grenzradius: Passen Sie die Rundheit des Randes an.
  • Polsterung: Increase the inner spaces within the menu border area.
  • Marge: Add a value manually to add spaces between the menu items.

Step 6: Style the Mobile Menu #

The following settings are applied to customize the menu look and feel for mobile devices.

  • Symbolposition: Select the position for the hamburger icon in the page. (Let/ Right/ Icon)
  • Symbolgröße: Use this slider to determine the hamburger icon size.
  • Icon Width: Use this slider to adjust the width of the hamburger icon.
  • Höhe: Define the height of the hamburger icon.
  • Grenzradius: Determine the roundness of the hamburger icon border.

The remaining options of this settings area are applicable to the both Normal and Hover options.

  • Hintergrund: Add a background color to the hamburger menu.
  • Symbolfarbe: Give a color to the hamburger icon.
  • Grenze: Get border settings for the hamburger icon.

Close Button,

  • Symbolgröße: Use this slider to determine the icon size.
  • Marge: Include a value manually to add spaces around the close button.
  • Breite: Use this option to increase the width of the close button.
  • Höhe: Determine the height of the close button.
  • Grenzradius: Use the slider to adjust the roundness of the border.

The following three options can applied to both Normal Und Schweben Optionen.

  • Hintergrund: Add a background type between solid color and gradient.
  • Symbolfarbe: Give color to the close button icon.
  • Grenze: Use this settings area to add and style border around the close button.

This was our tutorial for easily adding a nav menu on the block editor of your WordPress website.

Was sind deine Gefühle?
Updated on Oktober 1, 2024