Instantly share code, notes, and snippets.

Embed
What would you like to do?
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