Skip to content

Instantly share code, notes, and snippets.

@schilke
Created December 1, 2014 20:33
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 schilke/088de7c1d8f30e8ba294 to your computer and use it in GitHub Desktop.
Save schilke/088de7c1d8f30e8ba294 to your computer and use it in GitHub Desktop.
Breadcrumbs in Genesis Nav Extras (really, really Q&D Hack)
<?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;
}
@schilke
Copy link
Author

schilke commented Dec 1, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment