WidgetCoreWidgetCore Documentation

Breadcrumb Widget

Full guide to the WidgetCore Breadcrumb widget: Yoast/Rank Math bridge, an internal trail from home, ancestors and categories, eight separators plus a custom one, JSON-LD schema and style controls.

The Breadcrumb widget shows the navigation chain of the current page: Home ← middle sections ← the current item. In automatic mode, if the Yoast SEO or Rank Math plugin is active, that plugin's own breadcrumb is printed (the SEO bridge); otherwise the widget builds the trail itself from the WordPress structure and can print the BreadcrumbList schema. The widget ships no JavaScript.

ItemValue
Widget IDwgcr-breadcrumb
Panel titleBreadcrumb
CategoryWidgetCore widgets (wgcr)
Style / scriptwgcr-breadcrumb / —
Root class.wgcr-breadcrumb (on the <nav> or the bridge wrapper)

"Trail source" section

ControlIDTypeDefaultNotes
Trail providerproviderselectAutomaticAutomatic / Yoast SEO / Rank Math / Internal; falls back to Internal when the selected plugin is not active
BreadcrumbList schema (JSON-LD)schemaswitcherOnPrinted only in Internal mode; the SEO plugins carry their own schema. Its panel note is schema_note

Automatic mode prefers Yoast, then Rank Math. The SEO bridge uses each plugin's official shortcodes ([wpseo_breadcrumb] and [rank_math_breadcrumb]), so every setting you configured in the SEO plugin is respected untouched.

"Labels and separator" section

ControlIDTypeDefaultNotes
Home labelhome_labeltext"Home" (translated)An empty field falls back to the default
Show home linkshow_homeswitcherOnThe first crumb
Show current section (the last crumb without a link)show_currentswitcherOnThe last crumb, rendered without a link and with aria-current="page"
Show primary category on single postsinclude_categoryswitcherOnThe first category of a single post joins the trail
SeparatorseparatorselectLeft angle ‹Eight built-in separators: ‹ › / » « | – •
Custom separatorseparator_customtext—Only when the separator is set to "Custom"

How the internal trail is built

Page typeCrumbs
PageHome ← page ancestors (top-down) ← page title
Single postHome ← primary category (optional) ← post title
Category/tag/taxonomy archiveHome ← term name
Author archiveHome ← author display name
Search resultsHome ← "Search: phrase"
404Home ← "Not found"
Post type archiveHome ← archive title
Front pageJust "Home" as the current crumb

HTML output

html
<nav class="wgcr-breadcrumb" aria-label="Breadcrumb">
  <ol class="wgcr-breadcrumb-list">
    <li class="wgcr-breadcrumb-item">
      <a href="https://example.com/">Home</a>
      <span class="wgcr-breadcrumb-sep" aria-hidden="true">‹</span>
    </li>
    <li class="wgcr-breadcrumb-item" aria-current="page"><span>Page title</span></li>
  </ol>
</nav>
<script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"BreadcrumbList","itemListElement":[…]}</script>
Class / rolePurpose
nav.wgcr-breadcrumbNavigation landmark with an aria-label
.wgcr-breadcrumb-listThe ordered ol list of crumbs
.wgcr-breadcrumb-itemEach crumb; the last one carries aria-current="page" and no link
.wgcr-breadcrumb-sepThe separator with aria-hidden="true" (screen readers skip it)
.wgcr-breadcrumb--bridgeThe wrapper around Yoast/Rank Math output in bridge mode

In the JSON-LD schema every crumb is a ListItem with position and name, and all crumbs except the current one carry an item URL — the pattern Google recommends.

Style sections

  • Box: background, border, radius, shadow and padding (the shared control library), typography, "Text color", "Current crumb color", "Layout" and "Space between crumbs".
  • Links and separator: "Link color" and "Separator color" in the Normal tab and "Link hover color" in the Hover tab. Colors run through CSS variables, so hover always works even when the Normal colors are set.