Texts & theme
Change texts as snippets, the markup with Twig blocks and the look with CSS.
Snippets
| Snippet | Used for |
|---|---|
devertRichSnippets.breadcrumb.home | name of the home entry |
devertRichSnippets.breadcrumb.back | compact back link, %name% |
devertRichSnippets.breadcrumb.search | entry on the search page, %term% |
devertRichSnippets.cookie.clickPath.* | entry in the cookie settings |
Override templates
The plugin extends @Storefront/storefront/layout/breadcrumb.html.twig and, for JSON-LD, layout/structured-data/json-ld-breadcrumb.html.twig. A theme overrides blocks as usual with sw_extends.
There are two ways of rendering. Classic (Shopware without BREADCRUMB_REWORK and no new option active) keeps the markup of the Shopware core with the home entry; the core blocks apply. As soon as an option or the rework mode is active, the plugin renderer renders the list itself, and the core blocks layout_breadcrumb_list_item and layout_breadcrumb_placeholder are not used.
| Block of the plugin renderer | Content |
|---|---|
devert_breadcrumb_container | the whole nav |
devert_breadcrumb_back | back link (compact) |
devert_breadcrumb_list | list with all entries |
devert_breadcrumb_item | one entry |
devert_breadcrumb_item_link | link of an entry |
devert_breadcrumb_item_home_icon | house icon |
devert_breadcrumb_item_active_text | current entry as text |
devert_breadcrumb_item_folder, …_item_text | entries without link |
devert_breadcrumb_item_position | position for microdata |
devert_breadcrumb_alternatives | alternative paths of the click path |
devert_breadcrumb_separator | separator (classic only, otherwise CSS) |
Variables: devertConfig (options), devertItems (entries with type, name, categoryId, active, inSnippet, position, newTab), inside the entry blocks devertItem, devertUrl, devertSnippet, devertIconOnly. For JSON-LD there is the block layout_structured_data_breadcrumb_script with breadcrumbData.
If you change the list in your theme, this also applies to the alternative paths of the click path, because they use the same blocks.
CSS
All classes start with devert-breadcrumb. Styles are set on the nav as devert-breadcrumb--style-<style>. The accent color is in --devert-breadcrumb-accent.