# Main navigation

![](https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MCG4xkoMVXEQllVF5R9%2F-MHWsLYJ_g3DfKCVT0Mv%2F-MHWuRs7KG4EvDV-8dg_%2Fdocs-front-header-shop-navigation-categories.jpg?alt=media\&token=27df33c3-b2db-48b4-89da-1478037e03ab)

### Basic configuration

Enable or disable the **Home link** in your catalogue settings. A tutorial on configuring the Home link can be found [here](https://themedocs.zenit.design/en/faq/general/home-link).

For visual reasons, the **Home-Link active status (1)** can also be disabled and optionally replaced with a **Home icon (2)**.

Example:

<figure><img src="https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2FkIepVM9UMbKNajWLHeAP%2Fdocs-config-theme-header-main-navigation-general-home-active-storefront-example.png?alt=media&#x26;token=10191ee0-7221-4606-b0e0-b58c2a3b8257" alt=""><figcaption><p>Home-Link active status</p></figcaption></figure>

<figure><img src="https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2FLYEHgbgBp2yefjqDguRb%2Fdocs-config-theme-header-main-navigation-general-home-icon-storefront-example.png?alt=media&#x26;token=bf59f1d4-ff4c-4f1d-8bdb-279715140c22" alt=""><figcaption><p>Home icon</p></figcaption></figure>

With the **alignment (3)** you can align and distribute the menu items horizontally. The **separator (4)** setting divides the single menu items with a separator.

Choose from 13+ **Hover Animation (5)** select the appropriate animation for your store.

![](https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2FurY0oNXcvsGURYqeJIv2%2Fdocs-en-config-header-main-navigation-basic-configuration.png?alt=media\&token=cdb71133-bcae-4850-a397-ff16d1f8b067)

The **Scroller (6)** optionally ensures that main navigation categories cannot wrap - no matter how many main categories you want to map. On mobile devices with touch input can be scrolled horizontally, on desktop devices can be reached with the help of **arrows (**<mark style="color:red;">**1**</mark>**,&#x20;**<mark style="color:red;">**2**</mark>**)**.

Example:

![Menu-Scroller - Arrow](https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2FaNIMynvvzpBmcJbJch7M%2Fdocs-en-storefront-header-main-navigation-scroller.png?alt=media\&token=8c78dac9-e2be-4046-a2cf-90e124974666)

![Menu-Scroller - Arrow to scroll back](https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2FOdx4sToAcd1vcb7KPvwT%2Fdocs-en-storefront-header-main-navigation-scroller-scrolled.png?alt=media\&token=ffd9c89e-bc88-4134-a296-4a499182a1a0)

The option **subnavigation appearance (7)** provides the ability to replace the standard flyout navigation with a simple dropdown navigation.

{% hint style="success" %}
The “**Subnavigation appearance**” setting for choosing between a dropdown or flyout menu can also be found in the custom fields of each category. This allows you to define the menu type per category and flexibly combine both styles within the main navigation. [Read more](https://themedocs.zenit.design/en/content/category/subnavigation)
{% endhint %}

Example:

![Dropdown-Menü](https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2FILUKbMvWk1wTG4ectUtx%2Fdocs-de-theme-header-main-navigation-style-dropdown-storefront.jpg?alt=media\&token=11f64411-c549-4536-8cfe-836ca8c17335)

With the option **Display service navigation mobile (8)**, the service navigation can be displayed in the mobile offcanvas menu.

Example:

<figure><img src="https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2Fwe0epWiYkhlwNcx1Hz8G%2Fdocs-en-config-service-navigation-mobile-example.png?alt=media&#x26;token=5e5a962e-005b-4025-af81-2f45b3435603" alt="" width="563"><figcaption></figcaption></figure>

### Border top

Optionally, the main navigation can be separated from the upper header area by a border.

![](https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2FlkPRpD7zYUip8gJlqa2j%2Fdocs-en-config-theme-header-main-navigation-border-top.png?alt=media\&token=b20e2512-06a7-49cf-832f-7ec09e174daf)

With the help of the setting **Full width (1)** you can stretch the line to the full header width. This way, depending on the basic layout you choose, the line will run to the edge of the browser and will not be limited by the maximum content width of your online shop.

Example:

![](https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MCG4xkoMVXEQllVF5R9%2F-MHWv2vXo6PCF_HXj274%2F-MHWvTnavep5xdQrj2CY%2Fdocs-front-main-navigation-border.png?alt=media\&token=ac1107f5-7360-4552-b408-839efd3673b7)

### Menu items

With the option **arrows (1)** you can display small arrows next to the categories which will be displayed if a category has subcategories, see example 1.

**Extern-link icon (2)** displays the familiar "External Link" icon for categories of type "Link" when it is checked by ["Open in new tab"](https://docs.shopware.com/en/shopware-6-en/catalogs/categories?category=shopware-6-en/catalogs#general). This way your visitors will know exactly what happens when they click on such a link, see example 2.

You set the spacings between each category with **Padding left/right (3)**. Should you use a lot of categories, reduce the spacing between your categories.

![](https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2F95MOmN1CLwSPfkPiIBW9%2Fdocs-en-config-theme-header-main-navigation-menu-itmes.png?alt=media\&token=1e18d10f-73b0-461c-ab9d-6db1428c0d8c)

Example 1:

![Arrow on category with child elemtns](https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2FgOHyhQyLTNn30wjMreq9%2Fdocs-theme-header-main-navigation-items-arrow.png?alt=media\&token=e9677650-bb55-4e83-a70f-fb182ad53cf1)

Example 2:

![Extern link marked with "Extern link"-Icon](https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2FUZcnR90YeMS83ROar6w5%2Fdocs-theme-header-main-navigation-items-extern-link-icon.png?alt=media\&token=fa5b56c8-847a-4cd6-9fa6-fbc670c73277)

### Category icons

> from theme version 4.7.0

Via the **custom fields** under Catalogues > Categories > \[Select category] in the tab "Additional" you will find a media field **Category Icon** for configuring the icon.

<figure><img src="https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2Fx2hyScM58DEBj9VPaD3H%2Fdocs-en-config-theme-main-navigation-category-icon.png?alt=media&#x26;token=c05bead8-4380-40cd-b341-305de719a4c9" alt=""><figcaption></figcaption></figure>

You can use the checkbox **Icon (1)** to activate the display of icons in the main navigation and set the **Size (2)** of the icons for the respective menu. In the mobile view, the main menu is shown as a mobile off-canvas menu. Here, too, you can use the checkbox **Icon mobile (2)** to determine whether category icons should be displayed in this menu. In the field **Size (4)** you enter the size of the image in pixels.

Example:

<figure><img src="https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2FuCy7HvlQHpL1mLo1vVpE%2Fdocs-en-storefront-custom-fields-category-icon-media-mobile-offcanvas.png?alt=media&#x26;token=2bb2488a-b8dc-47ce-aa7e-d0b8c84e2d81" alt="" width="375"><figcaption><p>Category icons in the mobile offcanvas menu</p></figcaption></figure>
