Skip to content

Breadcrumbs

Breadcrumb navigation displays the direct hierarchical page-by-page navigation path from the homepage to the user's current page. Home is not included in the breadcrumbs.

Anatomy

  1. Items
  2. Current

Usage Guidelines

  1. Breadcrumb navigation is only displayed for desktop users, not mobile.
  2. Breadcrumb navigation displays the direct hierarchical page-by-page navigation path from the homepage to the user's current page.
  3. Home is not included in the breadcrumbs.
  4. The parent pages are shown in an inactive color.
  5. Parent pages within the breadcrumb are clickable.
  6. The current page in the breadcrumbs is not clickable.
  7. Click-ability of higher level breadcrumbs follows the style for clickable links defined by the theme design.‌
  8. The current page is shown in the breadcrumbs in the 'highlight' text style.

WordPress

This component is included automatically in most page templates.

Specifications

Properties

PropertyTypeDescriptionRequiredDefault
breadcrumbsarray List of links to appear in the breadcrumb list Yes-
└ itemobject - --
└ urlstring - Yes-
└ titlestring Display text Yes-
└ currentboolean indication for which page we're on right now, usually the last one in the list No-
show_on_mobileboolean Whether to show breadcrumbs on small viewports Nofalse

Styling

Colors

NameApplicationCustom PropertyRolesDefault OpacityDescription
current-color--tux-comp-breadcrumb--current-coloron-background--

Custom Properties

NameDefaultResetsDescription
--tux-comp-breadcrumb--current-colorvar(--tux-theme--link-color)Yes-

Changelog

1.0.0

  • breadcrumb added

Contained In

Other components that use this component (not including freeform content slots).

Examples

Default

{{ include( 'components/breadcrumb.twig', {
	breadcrumbs: {...}
} ) }}