/functions.php Secret
Created
May 10, 2018 19:55
Star
You must be signed in to star a gist
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 | |
function be_add_blog_crumb( $crumb, $args ) { | |
if ( is_singular( 'post' ) || is_category('xxx-lists') ) | |
return '<a href="/xxx-overview-page/" rel="nofollow">Overview Page</a> ' . $args['sep'] . ' ' . $crumb; | |
else | |
return $crumb; | |
} | |
add_filter( 'genesis_single_crumb', 'be_add_blog_crumb', 10, 2 ); | |
add_filter( 'genesis_archive_crumb', 'be_add_blog_crumb', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment