Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

How to change breadcrumb second array?

$
0
0

Replies: 0

Hello Team,

I have done lots of research on google but not able to find the perfect solution for the below changes.

I want to change attribute breadcrumb second array text from “Product Collections” to “Collections” (Please see image for detailed info: https://imgur.com/a/QM6l8r7

Current Result: Home > Product Collections > Entertain in Style
After update need something like : Home > Collections > Entertain in Style

Ref link: https://docs.woocommerce.com/document/customise-the-woocommerce-breadcrumb/

Every solution is showing how to update home text but not showing for other text I have also tried below code but not working as I am missing on specific hook

add_filter( 'woocommerce_breadcrumb_defaults', 'wcc_change_breadcrumb_home_text' );
function wcc_change_breadcrumb_home_text( $defaults ) {
    // Change the breadcrumb home text from 'Home' to 'Apartment'
	$defaults['product collections'] = 'Collections';
	return $defaults;
}
add_filter( 'woocommerce_breadcrumb_defaults', 'wcc_change_breadcrumb_home_text', 20 );

Viewing all articles
Browse latest Browse all 59525

Trending Articles