Skip to content

DmfDropdownNavigation ​

DmfDropdownNavigation replaces Shopware 6's default navigation bar with a fully accessible variant featuring keyboard navigation, configurable colors, and optional highlighting of the first category.

Quick facts ​

Composer packagedmf/sw6-plugin-dropdown-navigation
Plugin classDmf\DropdownNavigation\DmfDropdownNavigation
NamespaceDmf\DropdownNavigation
Shopware~6.7.0
Repositorydmf / plugin-dropdown-navigation
ChangelogAll releases

Installation ​

bash
composer require dmf/sw6-plugin-dropdown-navigation
bin/console plugin:refresh
bin/console plugin:install --activate DmfDropdownNavigation
bin/console theme:compile
bin/console cache:clear

Features ​

  • Accessible navigation: full keyboard control, correct ARIA attributes, visible focus.
  • Color customisation: background, link color, hover background, and hover text color all configurable.
  • Highlight first category: render the first category lighter or darker.
  • Mobile top-level resolving: display categories directly instead of category folders as an intermediate level.

Configuration ​

In the admin under Settings → Plugins → Dropdown navigation:

FieldTypeDefaultEffect
highlightFirstCategorysingle-selectlightenHighlight first category: lighten, darken, noHighlight.
navBgColorcolorpicker#0B1845Background color of the navigation bar.
navLinkColorcolorpicker#FFFFFFLink text color.
navLinkBgHovercolorpicker#215AFFHover background color for links.
navLinkHoverColorcolorpicker#FFFFFFLink text color on hover.
mobileCategoryTreeResolvingcheckboxfalseOn mobile, display categories directly instead of category folders.

Notes ​

Aligned with Guppy

DmfDropdownNavigation integrates seamlessly with DmfGuppyTheme, the default colors match Guppy brand tokens. For your own themes, set the colors explicitly.

Theme-agnostic

The plugin works with any Shopware theme since it overrides Twig templates and storefront JS. When pairing with custom themes, run theme:compile after each configuration change.