Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #10369

    How to change Related Product text please? I want to have ‘You may also like these’

    Thanks

    Vince

    #67822

    Hi Vincent

    I guess you have to edit the .po file in woocommerce and change the string

    #67823

    Hi StickFinger, That’s not working for me, thanks anyway.

    #67824

    Hi Vincent

    try to open up your wp-content/plugins/woocommerce/templates/single-product/related.php file.

    Around line 12 you´ll find this:

    Code:
    <div class=”related products”><h2><?php _e(‘Related Products’, ‘woocommerce’); ?></h2>

    Change the ‘Related Products’ to whatever you want but remember that is hardcoded change, be aware of that on a next update.

    The funny thing is that i´m using woocommerce in other language than english and i can do this change via the .po file

    Tell me if you succeed :-)

    #67825

    Hi,

    Thanks again for your help. That worked perfectly.

    BTW what did you mean by .po file. I went into related.php as you suggested and works quite well. Thanks again

    Vince

    #67826

    Hi

    The “.po” and “.mo” are files that handle translations in WP and plugins, some useful links:

    http://codex.wordpress.org/Translating_WordPress

    http://codex.wordpress.org/Translating_WordPress#Translating_With_Poedit

    http://codex.wordpress.org/Files_For_Direct_Translation

    Take a look at your woocommerce/languages folder to see how many languages are distributed with the version. However there is not an English file because the default is english.

    So for instance, let´s say that you want to change all the strings of woocommerce keeping up the english as your default language, you´d have to generate a POT ( catalog file) and the corresponding .po and .mo files. Otherwise you´ll need to change the files in the core php files what not alaways is a good practice because in case of further updates you´ll loose your work…

    Wilson

    #67827

    Thanks for your help Wilson

    #67828

    No problem, Vincent

    I´m glad to be helpful :-)

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

The topic ‘Change Related Product Text’ is closed to new replies.