Skip to content

Instantly share code, notes, and snippets.

Last active May 13, 2022 14:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Genesis Framework - Breadcrumbs (functions.php)
<?php // Don't include the opening PHP tag if you're already inside PHP tags!
/* Remove "You are here:" from breadcrumbs */
add_filter('genesis_breadcrumb_args', 'remove_breadcrumbs_yourarehere_text');
function remove_breadcrumbs_yourarehere_text( $args ) {
$args['labels']['prefix'] = '';
return $args;
/* Change breadcrumbs separator from "/" to "|" */
add_filter('genesis_breadcrumb_args', 'modify_separator_breadcrumbs');
function modify_separator_breadcrumbs($args) {
$args['sep'] = '<span class="separator"> | </span>';
return $args;
/* Add shortcode to display Genesis Breadcrumbs */
add_shortcode( 'breadcrumbs', 'breadcrumbs_shortcode' );
function breadcrumbs_shortcode() {
return ob_get_clean();
add_filter( 'widget_text', 'do_shortcode' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment