Language Translations

The ABC theme supports multiple languages and can be easily translated using Loco Translate or other translation plugins. This guide will help you translate the theme effectively.


1. Translating the Theme Using Loco Translate

Step 1: Install and Activate Loco Translate

  1. Go to Dashboard → Plugins → Add New.
  2. Search for Loco Translate and click Install Now.
  3. Activate the plugin.

Step 2: Select the Theme for Translation

  1. Navigate to Dashboard → Loco Translate → Themes.
  2. Select the [Item-Name] theme.
  3. Click New Language.

Step 3: Choose a Language

  1. Select your desired language (e.g., Spanish (es_ES)).
  2. Choose the Custom location:
    ✅ wp-content/languages/loco/ (Recommended – Safe from theme updates)
  3. Click Start Translating.

Step 4: Translate Text Strings

  1. Find the text you want to translate using the search bar.
  2. Enter your translation in the “Translation” field.
  3. Click Save to apply the changes.

2. Manual Translation Using PO/MO Files

If you prefer manual translation without a plugin:

Step 1: Locate the Language Files

  1. Go to your theme folder:
    • wp-content/themes/[theme-name]/languages/
  2. Download the .po and .mo files.

Step 2: Edit with PoEdit

  1. Install PoEdit (Download Here).
  2. Open the .po file in PoEdit.
  3. Translate the text strings and click Save (this will also generate a .mo file).

Step 3: Upload Translated Files

  1. Rename the translated files to match your language (e.g., es_ES.po and es_ES.mo).
  2. Upload them to:
    ✅ wp-content/languages/themes/[theme-name]-es_ES.mo (Recommended location)

3. Ensure WordPress is Set to Your Language

  1. Go to Dashboard → Settings → General.
  2. Scroll to Site Language.
  3. Select your preferred language and Save Changes.

4. Troubleshooting Common Translation Issues

Translations Revert or Don’t Work?

✅ Save translations in wp-content/languages/loco/ instead of the theme folder to prevent theme updates from overriding them.
✅ Clear cache if using caching plugins like WP Rocket or W3 Total Cache.
✅ Ensure MO files are generated after saving translations.


Final Notes

  • Loco Translate is the easiest and safest way to translate your site.
  • Always store translation files in wp-content/languages/ to prevent loss during updates.
  • For plugins, follow the same steps under Loco Translate → Plugins.

By following this guide, you can successfully translate the ABC theme into your preferred language. 🚀