Skip to content

Instantly share code, notes, and snippets.

@damiencarbery
Last active January 14, 2019 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save damiencarbery/8b998d6d64cde4becf7e971646081377 to your computer and use it in GitHub Desktop.
Save damiencarbery/8b998d6d64cde4becf7e971646081377 to your computer and use it in GitHub Desktop.
Make page title a link to itself in Genesis breadcrumbs - Breadcrumbs don't link to the current post/page but a forum member wanted to. It was an irresistible challenge. https://www.damiencarbery.com/2019/01/make-page-title-a-link-in-genesis-breadcrumbs/
<div class="breadcrumb" itemscope itemtype="https://schema.org/BreadcrumbList">
You are here:
<span class="breadcrumb-link-wrap" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a class="breadcrumb-link" href="http://localhost/essence-pro/" itemprop="item">
<span class="breadcrumb-link-text-wrap" itemprop="name">
Home
</span>
</a>
<meta itemprop="position" content="1">
</span>
<span aria-label="breadcrumb separator">/</span>
<span class="breadcrumb-link-wrap" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a class="breadcrumb-link" href="http://localhost/essence-pro/layouts/" itemprop="item">
<span class="breadcrumb-link-text-wrap" itemprop="name">
Page Layouts
</span>
</a>
<meta itemprop="position" content="2">
</span>
<span aria-label="breadcrumb separator">/</span>
Sidebar / Content
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment