Skip to content

Instantly share code, notes, and snippets.

@icreatesolutions
Last active November 23, 2015 22:59
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 icreatesolutions/79ec47c4e62722eefb4d to your computer and use it in GitHub Desktop.
Save icreatesolutions/79ec47c4e62722eefb4d to your computer and use it in GitHub Desktop.
<?php
add_filter( 'genesis_single_crumb', 'icreate_blog_breadcrumb_filter', 10, 2 );
function icreate_blog_breadcrumb_filter( $crumbs, $args ) {
$crumbs = '<span class="breadcrumb-link-wrap" itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem"><a href="'
. get_the_permalink( get_option( 'page_for_posts' ) )
.'" itemprop="item"><span itemprop="name">'
. get_the_title( get_option( 'page_for_posts' ) ) . '</span></a></span> ' . $args['sep'] .' ' . get_the_title();
return $crumbs;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment