Breadcrumb : Problem with Product tagged pages

#536833
  • Resolved Gaulin
    Rank Math free

    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

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    I’ve checked the page you have shared, and the word Produits étiquetés is no longer showing in the breadcrumbs. Please refer to the screenshot attached in the sensitive data section.

    Could you please confirm if you have already managed to resolve this issue?

    Looking forward to helping you.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Breadcrumb : Problem with Product tagged pages’ is closed to new replies.