Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Thorsten Frommen

    (@ipm-frommen)

    Hi arejay,

    if you are talking about the WooCommerce breadcrumbs, where exactly did you find something untranslated?

    The breadcrumbs should be translated already.

    Kind regards,
    Thorsten

    Thread Starter arejay

    (@arejay)

    Hi Thorsten,

    Sorry for the misleading post. The breadcrumbs are translated only my Home page isn’t.

    Ex.: Home / Boutique / Produits / Argent Luisant

    So as you can see only the Home isn’t, should be:

    Ex.: Acceuil / Boutique / Produits / Argent Luisant

    Thanks,

    Rolland

    Plugin Contributor Thorsten Frommen

    (@ipm-frommen)

    Hi Rolland,

    this is nothing you can set in my plugin/back-end.

    However, WooCommerce offers a filter hook for this. The following should do what you want. Just put this in your functions.php file:

    function translate_woocommerce_breadcrumb_home( $b ) {
    	$b[ 'home' ] = __( '[:en]Home[:fr]Acceuil' );
    
    	return $b;
    }
    add_filter( 'woocommerce_breadcrumb_defaults', 'translate_woocommerce_breadcrumb_home' );
    Thread Starter arejay

    (@arejay)

    Hi Thorsten,
    Hi added your snippet to my functions.php file but it didn’t correct the problem.
    Maybe it would be helpful if I tell you that the home page is a custom page in Mystile.

    Thanks,

    Rolland

    Plugin Contributor Thorsten Frommen

    (@ipm-frommen)

    Hi Rolland,

    please see my answer to your other question.

    Anyway, as long as you are talking about the WooCommerce breadcrumbs it does not matter what template file your home page is using.

    I tested my above code, and it does exactly what I understood you asked for.

    Kind regards,
    Thorsten

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Translating WooCommerce Breadcrumbs’ is closed to new replies.