Created
January 31, 2012 01:28
-
-
Save GaryJones/1708060 to your computer and use it in GitHub Desktop.
Modify Genesis breadcrumb display
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'genesis_breadcrumb_args', 'child_breadcrumb_args' ); | |
/** | |
* Amend Genesis breadcrumb options. | |
* | |
* @author Gary Jones | |
* @link http://code.garyjones.co.uk/modify-breadcrumb-display/ | |
* | |
* @param array $args Default breadcrumb arguments. | |
* | |
* @return array Amended breadcrumb arguments. | |
*/ | |
function child_breadcrumb_args( $args ) { | |
$args['home'] = 'Home'; | |
$args['sep'] = ' / '; | |
$args['list_sep'] = ', '; // Genesis 1.5 and later | |
$args['prefix'] = '<div class="breadcrumb">'; | |
$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 '; | |
$args['labels']['category'] = 'Archives for '; // Genesis 1.6 and later | |
$args['labels']['tag'] = 'Archives for '; | |
$args['labels']['date'] = 'Archives for '; | |
$args['labels']['search'] = 'Search for '; | |
$args['labels']['tax'] = 'Archives for '; | |
$args['labels']['post_type'] = 'Archives for '; | |
$args['labels']['404'] = 'Not found: '; // Genesis 1.5 and later | |
return $args; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'genesis_breadcrumb_args', 'child_breadcrumb_args' ); | |
/** | |
* Set breadcrumb options. | |
* | |
* @author Gary Jones | |
* @link http://code.garyjones.co.uk/modify-breadcrumb-display/ | |
* | |
* @param array $args Default breadcrumb arguments. | |
* | |
* @return array Amended breadcrumb arguments. | |
*/ | |
function child_breadcrumb_args( $args ) { | |
$args['home'] = 'Start'; | |
$args['sep'] = '→'; | |
$args['labels']['author'] = 'Entries written by '; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment