-
-
Save jameskoster/4740660 to your computer and use it in GitHub Desktop.
add_filter( 'woocommerce_breadcrumb_home_url', 'woo_custom_breadrumb_home_url' ); | |
function woo_custom_breadrumb_home_url() { | |
return 'http://woothemes.com'; | |
} |
I know this is 3 years later but hopefully will help someone.
There are 2 typos with the word 'breadcrumb' in the code - it is missing the letter C. This is why it wouldn't work. When I corrected the spelling then it worked. I've added the correct code below...
add_filter( 'woocommerce_breadcrumb_home_url', 'woo_custom_breadcrumb_home_url' ); function woo_custom_breadcrumb_home_url() { return 'http://woothemes.com'; }
Would be cool to update this as it is used for documentation.
I want to redirect the Home button to the store home, but it's always going to the homepage..
add_filter( 'woocommerce_breadcrumb_home_url', 'woo_custom_breadcrumb_home_url' );
function woo_custom_breadcrumb_home_url() {
return 'http://misci.pt/en/shop';
}
i was going to skip even trying this code after reading mrseoliveira's comment just above but, luckily, copying the code presented at the top of this post, replacing the woothemes url with mine, and pasting it to the top of my functions.php worked perfectly.
many thanks
Tried using this code on a WooCommerce + Genesis theme and it did not change anything. Even tried pasting it line for line. No effect. Ideas?