How can I remove the current page from the breadcrumbs trail on a Genesis WordPress site? I’ve examined breadcrumb.php top to bottom, but am not sure which filter(s) I should hook into.
Thanks!
How can I remove the current page from the breadcrumbs trail on a Genesis WordPress site? I’ve examined breadcrumb.php top to bottom, but am not sure which filter(s) I should hook into.
Thanks!
You must be logged in to post a comment.
Bill Erickson has a snippet to remove the post title. This may be worth a shot to remove the current page title as well:
http://www.billerickson.net/code/remove-post-title-from-breadcrumb/
I’m suprised there isn’t more information out there about this.
But if you use Genesis Connect for WooCommerce plugin (to use WooCommerce with your Genesis site) and you need to remove the current page from the breadcrumbs from your products pages you need to do this:
To remove specifically from pages, use
'genesis_page_crumb'
filter with the same logic:You can also experiment with
'genesis_build_crumbs'
filter that accepts$crumbs
array and default breadcrumbs arguments array$args
. It’s used in Genesis Breadcrumbs classbuild_crumbs()
method (more info here).