skip to Main Content

In the Downloads tab of the My Account area in WooCommerce, by default the text says "No downloads available yet". I need to change this text to something more specific.

I would rather not do this by copying plugin files to my child theme, but would prefer to do it with code snippet.

If anyone can help, it would be massively appreciated.

Many thanks for your time.

2

Answers


  1. If you have access to ftp you can open the folder of Woocommerce plugin into a text editor.
    You can find for the string and replace it by a more specific one directly into the code.
    I think it’s the cleanest way.
    Let me know if it works.

    Login or Signup to reply.
  2. You have different ways of doing this:

    1- Copy wp-content/plugins/woocommerce/templates/myaccount/downloads.php to your theme folder inside /woocommerce folder and overwrite the part where the string is outputted -> recommended

    2- Edit the woocommerce-[LANG_CODE]_[LANG_CODE].po file inside wp-content/languages/plugins but you would lose this if you update the plugin

    3- If you have WPML installed you can do it via string-translation feature

    4- Edit it via JS, not so clean but hey, it would work! 😀

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search