Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Created November 12, 2015 03:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reasonstousegenesis/39f4a15cf1d995a09f83 to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/39f4a15cf1d995a09f83 to your computer and use it in GitHub Desktop.
Have another plugin produce the breadcrumbs
<?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