Created
December 1, 2014 20:33
-
-
Save schilke/088de7c1d8f30e8ba294 to your computer and use it in GitHub Desktop.
Breadcrumbs in Genesis Nav Extras (really, really Q&D Hack)
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 | |
// Discussion on LinkedIn: http://j.mp/1y5Mrgi | |
//* Modify breadcrumb arguments. | |
add_filter( 'genesis_breadcrumb_args', 'jsc_breadcrumb_args' ); | |
function jsc_breadcrumb_args( $args ) { | |
$args['sep'] = ' / '; | |
$args['prefix'] = '</ul><div class="breadcrumb">'; // the </ul> closes the navigation list | |
$args['suffix'] = '</div>'; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Has been discussed here: "Any idea on how to add breadcrumbs to the Genesis Navigation without using a plugin?" / Wordpress Experts / LinkedIn http://j.mp/1y5Mrgi