HomePage Forums Themeforest Piizalian – Fast Food Restaurant WooCommerce Theme How to change text Home in breadcrumbs?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8809
    Avatarstas
    Support Expired

    My main page has another name in other language, how can i change it?
    Home > Privacy Policy

    #8810

    Please add this custom code to the file functions.php( child-theme):

    
    add_filter('woocommerce_breadcrumb_defaults', 'piizalian_woocommerce_breadcrumb_defaults');
    function piizalian_woocommerce_breadcrumb_defaults($args){
       $args['home'] = _x( 'Home', 'breadcrumb', 'piizalian' );
    return $args;
    }

    Change ‘Home’ = ‘Your text’

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.