I want to add custom breadcrumbs labels - by Andrei Ispas

This topic has 8 replies, 4 voices, and was last updated 35 minutes ago ago by Tony Rodriguez

  • Avatar: Andrei Ispas
    Andrei Ispas
    Participant
    December 7, 2025 at 13:00

    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)

    Files is visible for topic creator and
    support staff only.
    7 Answers
    Avatar: Samir Malik
    Samir Malik
    Support staff
    December 7, 2025 at 15:19

    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

    Avatar: Andrei Ispas
    Andrei Ispas
    Participant
    December 7, 2025 at 15:57

    It worked for “Magazin”, but is not working for the first one, “Prima pagină”, which is basically, the home page

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 7, 2025 at 16:24

    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

    Avatar: Andrei Ispas
    Andrei Ispas
    Participant
    December 7, 2025 at 16:33

    I provided a temporary user

    Content is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 7, 2025 at 16:55

    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

    Avatar: Andrei Ispas
    Andrei Ispas
    Participant
    December 7, 2025 at 16:57

    Thanks for the support! My topic “I want to add custom breadcrumbs labels” has been successfully resolved.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    December 7, 2025 at 16:57

    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.

    Your input makes a real difference.

    Topic closed.
    The 8Theme Team

  • Viewing 8 results - 1 through 8 (of 8 total)

The issue related to '‘I want to add custom breadcrumbs labels’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.