Below is the code that you can use to modify the Breadcrumbs home link:
add_filter ( 'genesis_home_crumb', 'child_amend_home_breadcrumb_link' ); // Genesis >= 1.5
add_filter ( 'genesis_breadcrumb_homelink', 'child_amend_home_breadcrumb_link' ); // Genesis =< 1.4.1
/**
* Amend Home breadcrumb link.
*
* @author Gary Jones
*
* @param string $crumb HTML markup for Home breadcrumb
* @return string HTML markup
*/
function child_amend_home_breadcrumb_link( $crumb ) {
return preg_replace('/href="[^"]*"/', 'href="http://example.com/home"', $crumb);
}
Below is the code that you can use to reposition the Breadcrumbs:
/** Reposition the breadcrumbs */ remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); add_action( 'genesis_after_header', 'genesis_do_breadcrumbs' );
Below is the code that you can use to modify the Breadcrumbs display:
add_filter( 'genesis_breadcrumb_args', 'child_breadcrumb_args' );
/**
* Amend breadcrumb arguments.
*
* @author Gary Jones
*
* @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;
}