• Hey

    Where, what file do I find the the text that displays the word “HOME” in the breadcrumb trail?
    Please look at the screenshot and you will see the highlighted row from the Developer Tools. That word, where “physically” is it?

    Sometimes I want to make the outputted content modified and if I was using Joomla I would have solved this using the plugin “reReplacer” for Joomla, it will replace any rendered page content.

    Dev Tools showing what I want to change.
    Screenshot

Viewing 4 replies - 1 through 4 (of 4 total)
  • This is not Woocommerce related question. Breadcrumbs are handled in theme or with some plugin maybe.

    I see you are using “Zephyr” theme. You need to contact theme developers.

    Or You can search theme files possibly “breadcrumbs.php”

    Thanks

    Best not to alter theme or plugin files. Any edits will be overwritten by updates.

    Did you try Loco Translate:
    https://ww.wp.xz.cn/plugins/loco-translate/

    Activate, then:
    Dashboard > Loco Translate > Themes > your-theme-name > select your language > Edit
    Click the Sync button
    then filter for “Home”.

    “Translate” in this context also means using different words in the same language

    A code snippet for changing “Home” in WooCommerce breadcrumbs is here:
    https://docs.woocommerce.com/document/customise-the-woocommerce-breadcrumb/
    You can try it, but yours looks more like a theme breadcrumb.
    Code goes in functions.php for your child theme.

    Thread Starter premier69

    (@premier69)

    hey

    well, I haven’t tried it but I suppose i could. is it the best way to go installing a plugin for that alone?

    There’s the WooCommerce snippet as I mentioned.

    Here’s some code I came across. It goes in functions.php in your child theme. I’ve not tried it myself…

    add_filter('gettext', 'translate_text');
    add_filter('ngettext', 'translate_text');
    function translate_text($translated) {
      $translated = str_ireplace( 'Home', 'Apartment', $translated );
      return $translated;
    }

    Suggest just don’t alter theme or plugin files.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Translating ONE word.’ is closed to new replies.