Changing the name of Shop in the breadcrumbs links

This topic has 2 replies, 2 voices, and was last updated 13 hours, 14 minutes ago ago by Luca Rossi

  • Avatar: mitys
    mitys
    Participant
    March 12, 2025 at 21:49

    Hello,
    Is there a way with the theme options to change the shop name to products for the breadcrumbs links ?
    Thank you.

    1 Answer
    Avatar: Justin
    Luca Rossi
    Support staff
    March 13, 2025 at 09:35

    Hi @mitys,

    Please try adding this custom code under functions.php file locates in your child theme:

    
    function n2t_text_strings( $translated_text, $text, $domain ) {
    	switch ( $translated_text ) {
    		case 'Shop' :
    			$translated_text = 'Your Custom Text Will Go Here';
    			break;
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'n2t_text_strings', 20, 3 );
    

    Hope it helps!

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

You must be logged in to reply to this topic.Log in/Sign up

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