Home Breadcrumb Studio (DevertRichSnippets) Documentation Shopware Store ↗ Deutsch

Texts & theme

Change texts as snippets, the markup with Twig blocks and the look with CSS.

Snippets

SnippetUsed for
devertRichSnippets.breadcrumb.homename of the home entry
devertRichSnippets.breadcrumb.backcompact back link, %name%
devertRichSnippets.breadcrumb.searchentry 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 rendererContent
devert_breadcrumb_containerthe whole nav
devert_breadcrumb_backback link (compact)
devert_breadcrumb_listlist with all entries
devert_breadcrumb_itemone entry
devert_breadcrumb_item_linklink of an entry
devert_breadcrumb_item_home_iconhouse icon
devert_breadcrumb_item_active_textcurrent entry as text
devert_breadcrumb_item_folder, …_item_textentries without link
devert_breadcrumb_item_positionposition for microdata
devert_breadcrumb_alternativesalternative paths of the click path
devert_breadcrumb_separatorseparator (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.