Created
November 12, 2015 03:25
-
-
Save reasonstousegenesis/39f4a15cf1d995a09f83 to your computer and use it in GitHub Desktop.
Have another plugin produce the breadcrumbs
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 | |
// Paste the code BELOW this line into your child theme functions. | |
/** | |
* Have another plugin produce the breadcrumbs | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/breadcrumbs/ | |
*/ | |
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); | |
add_action( 'genesis_before_loop', 'rtug_breadcrumbs' ); | |
function rtug_breadcrumbs() { | |
// replace my_plugin_breadcrumbs with your breadcrumbs function | |
if ( function_exists( 'my_plugin_breadcrumbs' ) ) | |
my_plugin_breadcrumbs(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment