Do you want to translate the WooCommerce strings within the Astra theme? Look no further than Loco Translate, a user-friendly plugin that simplifies the translation process.
This guide assumes you’ve already installed and activated the Loco Translate plugin on your WordPress website.
How To Change WooCommerce Strings Using Loco Translate
You can follow the below steps to easily translate the WooCommerce strings within the Astra theme.
- First, install and activate the plugin.
- It will add a new section to your WordPress dashboard down below settings.
- Navigate to Loco Translate > Home.
- Then, youโll see a screen like this.
- Click on ‘WooCommerce’ under Running plugins.
- And then, click the ‘+New Language’ option.
- What youโll want to do is choose the language that you have active on your WordPress site from the drop-down menu there.
- Then, click “Start Translating” button.
- After that, youโll see a list with all the text โstringsโ that you can translate.
- At the top, there is a handy โfilterโ field where you can search for the text youโd like to change.
Demo: For our demo here, we want to change the โAdd to Cartโ text to ‘Go to Cart’. We just select โAdd to Cartโ from the list, and then in the bottom box for our โtranslationโ, we enter what weโd like it to say instead. After that, you only need to click the โsaveโ button in the top left to make the change live. It worked for us.
Note: If the string is not visible, then you might have to sync the string, or the string is available with the WooCommerce plugin.
If you have translated the string and it is not visible on the front end then it might be a cache issue. So, once you make the changes, try to clear clear the cache for the site.