-
Hi,
I have setted Rant Math breadcrumb to make appear breadcrumb in pages but I have a problem with Product tagged pages.
I have found a functions.php hook to remove Products tagged from the breadcrumbs. It works in English when I set in my wordpress admin profil ‘ Products tagged “page title” ‘ do not appear in breadcrumb : Home > Spas > Spas 4 places
But when i set my wordpress admin profil in French « Produits étiquetés » appear in breadcrumb : Home > Spas > Produits étiquetés « Spas 4 places »
Here is the code used in English :
function my_gettext( $translation, $text, $domain ) {
switch ( $translation ) {
case ‘Products tagged “%s”’ :
$translation = __( ‘%s’, ‘woocommerce’ );
break;
}
return $translation;
}
add_filter( ‘gettext’, ‘my_gettext’, 20, 3 );And the code used in French which doesn’t work :
function my_gettext( $translation, $text, $domain ) {
switch ( $translation ) {
case ‘Produits étiquetés “%s”’ :
$translation = __( ‘%s’, ‘woocommerce’ );
break;
}
return $translation;
}
add_filter( ‘gettext’, ‘my_gettext’, 20, 3 );Any idea to make disappear “Produits étiquetés” from product tags breadcrumbs ?
Best regards,
Emmanuel Gaulin
The ticket ‘Breadcrumb : Problem with Product tagged pages’ is closed to new replies.