Hello,
Is there anyway i can control the breadcrumbs labels? I use Loco translate, tried to change the labels there but they don’t update in breadcrumbs.
I want, for example, instead of “Magazin”, to show another label. (check attached screenshot)
This topic has 8 replies, 4 voices, and was last updated 35 minutes ago ago by Tony Rodriguez
Hello,
Is there anyway i can control the breadcrumbs labels? I use Loco translate, tried to change the labels there but they don’t update in breadcrumbs.
I want, for example, instead of “Magazin”, to show another label. (check attached screenshot)
Hello,
Please add the following code under functions.php file locates in your child theme:
function n2t_text_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Magazin' :
$translated_text = 'Your custom text';
break;
}
return $translated_text;
}
add_filter( 'gettext', 'n2t_text_strings', 20, 3 );
Hope it helps!
Best Regards,
8Theme’s Team
It worked for “Magazin”, but is not working for the first one, “Prima pagină”, which is basically, the home page
Hello,
Have you updated your code for the other strings that need to be translated? Please refer to the following example:
function n2t_text_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Magazin' :
$translated_text = 'Your custom text';
break;
case 'Prima pagină' :
$translated_text = 'Your custom text for the home page text';
break;
}
return $translated_text;
}
add_filter( 'gettext', 'n2t_text_strings', 20, 3 );
If you still require our assistance, please provide temporary wp-admin access in the private content area.
Best regards,
8Theme Team
I provided a temporary user
Hello @Andrei Ispas,
Please check it now. We have added custom CSS to hide the first breadcrumb item: https://prnt.sc/WmhdJDgj2DWy.
Frontend result: https://prnt.sc/6uzuhrVfxYWP
Best regards,
The 8Theme Team
Thanks for the support! My topic “I want to add custom breadcrumbs labels” has been successfully resolved.
Dear Andrei Ispas,
We really appreciate your time and engagement within the WordPress & WooCommerce community
Your feedback drives every improvement we make in XStore — helping us deliver a smoother and more flexible experience with each update.
Leave Feedback →
(takes less than a minute)
Your input makes a real difference.
Topic closed.
The 8Theme Team
The issue related to '‘I want to add custom breadcrumbs labels’' has been successfully resolved, and the topic is now closed for further responses