-
-
Save marisqaporter/ac94b64148578064e649 to your computer and use it in GitHub Desktop.
This file contains 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 | |
//* Do NOT include the opening php tag | |
//* Change the word 'Home' that is at the front of breadcrumb trail | |
add_filter( 'genesis_breadcrumb_args', 'b3m_home_text_breadcrumb' ); | |
function b3m_home_text_breadcrumb( $args ) { | |
$args['home'] = 'Home'; | |
return $args; | |
} |
This file contains 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 | |
//* Do NOT include the opening php tag | |
//* Change the 'Home' link to point to a different URL | |
add_filter ( 'genesis_home_crumb', 'b3m_breadcrumb_home_link' ); | |
function b3m_breadcrumb_home_link( $crumb ) { | |
return preg_replace('/href="[^"]*"/', 'href="http://www.rickrduncan.com"', $crumb); | |
} |
This file contains 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 | |
//* Do NOT include the opening php tag | |
//* Remove 'You are here' from the front of breadcrumb trail | |
add_filter( 'genesis_breadcrumb_args', 'b3m_prefix_breadcrumb' ); | |
function b3m_prefix_breadcrumb( $args ) { | |
$args['labels']['prefix'] = ''; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment