Skip to content

Instantly share code, notes, and snippets.

@jameskoster
Last active November 9, 2016 15:02
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jameskoster/5849055 to your computer and use it in GitHub Desktop.
Save jameskoster/5849055 to your computer and use it in GitHub Desktop.
WooCommerce - change breadcrumb home text
add_filter( 'woocommerce_breadcrumb_defaults', 'jk_change_breadcrumb_home_text' );
function jk_change_breadcrumb_home_text( $defaults ) {
// Change the breadcrumb home text from 'Home' to 'Apartment'
$defaults['home'] = 'Apartment';
return $defaults;
}
@jennybeaumont
Copy link

I cannot for the life of me get this to work. Can you think of anything that could conflict with this? Am using Canvas child theme, with very few customizations. Could the permalink structure play a role?

@winsion
Copy link

winsion commented Feb 10, 2014

I can not figure out where the file is , in 3.8.1 WP and Woocommerce 2.X

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