Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save StewartChamberlain/6130840 to your computer and use it in GitHub Desktop.
Save StewartChamberlain/6130840 to your computer and use it in GitHub Desktop.
<?php
/** Do NOT include the opening php tag */
add_filter( 'genesis_breadcrumb_args', 'sc_breadcrumb_args' );
/**
* Custom Breadcrumbs
*
*/
function sc_breadcrumb_args( $args ) {
$args['home'] = 'Home'; // home text
$args['sep'] = ' &raquo; '; // the seperator between links
$args['list_sep'] = ', '; // Genesis 1.5 and later
$args['prefix'] = '<div class="breadcrumb">'; // the breadcrumbs container
$args['suffix'] = '</div>';
$args['heirarchial_attachments'] = true; // Genesis 1.5 and later
$args['heirarchial_categories'] = true; // Genesis 1.5 and later
$args['display'] = true;
$args['labels']['prefix'] = 'You are here:';
$args['labels']['author'] = 'Archives for '; // the author archives
$args['labels']['category'] = 'Archives for '; // the category archives (Genesis 1.6 and later)
$args['labels']['tag'] = 'Archives for '; // the tag archives
$args['labels']['date'] = 'Archives for '; // the date archives
$args['labels']['search'] = 'Search for '; // the search archives
$args['labels']['tax'] = 'Archives for '; // taxonomy archives
$args['labels']['post_type'] = 'Archives for '; // custom post type archives
$args['labels']['404'] = 'Not found: '; // 404 breadcrumbs (Genesis 1.5 and later)
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment