> For the complete documentation index, see [llms.txt](https://themedocs.zenit.design/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://themedocs.zenit.design/en/styling/components/sidebar-navigation.md).

# Sidebar navigation

![](https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MCG4xkoMVXEQllVF5R9%2F-MHX1yDMOg-WZJ1aXaPS%2F-MHX2F-x3mVhVmmPxS4f%2Fdocs-front-kategorie-sidebar-nav-filter.jpg?alt=media\&token=83f32274-6f3f-4f42-9a1a-741fc2d606db)

### Colors

In addition to the usual colors, the **active path (2)** can also be colored. The **:hover (3)** colors are additionally used for the active element.

![](https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2FCX2EIQrd9yAMmJxwxw6p%2Fdocs-en-config-theme-components-sidebar-navigation-colors.png?alt=media\&token=107fdfdc-6fdf-404b-84ee-bf0771abfde4)

**Background (1)** is the general background color of a menu item. **Background:active path (4)** sets the color for the active item. This makes it easier for the customer to distinguish which area of which level he can navigate deeper. **Background:hover (2)** marks the active parent element and the mouse-over action of the current menu elements.

![](https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2FSyIcFsIqbttiufTFLlXY%2Fdocs-de-storefront-theme-elements-sidebar-navigation-color.png?alt=media\&token=83379e0d-3297-443a-af3a-b6430e1ff7c7)

{% hint style="info" %}
You can underline an active element by activating this option in the basic configuration.
{% endhint %}

### Basic configuration

![](https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2FlPMinGilYDVam9nNszxX%2Fdocs-en-config-theme-components-sidebar-navigation-basic-configuration.png?alt=media\&token=b52bfea7-f316-4352-8377-f5a0e0b0d12c)

In addition to the font display settings, you can also specify a **vertical padding (1)**. The **vertical padding (1)** determines the height of each menu item. If there are many categories, a value as small as possible should be chosen.

Through the option **margin bottom (2)** the individual elements can be separated from each other.

The **display mode (3)** determines the mode of sidebar navigation. In mode `Expandable` subcategories can be expanded and collapsed without changing/loading the page.

There are various options available for the **Collapse icon (4)**. The icons are displayed as soon as the **Display mode** is set to `Expandable`.

**Hover animation (5)** can display an animated subline on mouse-over and active-state from the second navigation level.

![](https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2FokJaecN1AeDtVznJw6VH%2Fdocs-de-storefront-elements-sidebar-navigation-basic-configuration.png?alt=media\&token=f56f3d21-ae57-4d65-bc09-f36bd842d06c)

Examples:

![2px margin bottom, hover animation default](https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MCG4xkoMVXEQllVF5R9%2F-MH_IHtq6wgk4tqsQyTn%2F-MH_I_vfCmFo_CA-O3TB%2Fdocs-front-kategorie-sidebar-navigation-grundeinstellungen-1.png?alt=media\&token=7a0d5bca-3ce7-4807-945c-4cc25ddd16ad)

![Minimal design example, no colors or borders, hover animation: underline ](https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MCG4xkoMVXEQllVF5R9%2F-MH_IHtq6wgk4tqsQyTn%2F-MH_J6n9lp7eKtSmnQ36%2Fdocs-front-kategorie-sidebar-navigation-grundeinstellungen-2.png?alt=media\&token=c8e4b1d0-35a6-42a5-b01c-cb17b650409d)

### Category icon

> 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%2F9P2XTRBVvu8NeyQt0zGH%2Fdocs-en-config-theme-category-icon.png?alt=media&amp;token=3d3c60ac-cce4-4c95-9cd4-e5f7fec90ac8" 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.

Example:

<figure><img src="https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2FtjlAIE6W4EyjOynUSW2C%2Fdocs-en-storefront-custom-fields-category-icon-media-sidebar.png?alt=media&amp;token=1c856875-4548-49cc-b54d-453f75eda5ce" alt=""><figcaption><p>Category icons in sidebar navigation</p></figcaption></figure>
