All Collections
FAQ's and Troubleshooting
How to translate the Divi Theme
How to translate the Divi Theme

How to change the default translations that ships with Divi Theme with the help of a Child Theme.

Eduard Ungureanu avatar
Written by Eduard Ungureanu
Updated over a week ago

Divi is fully translated into 32 Languages, and includes RTL support, by default. You can read more about that here.

1. Setting up WordPress to use your language

You can go to your Dashboard (left menu) > Settings > General > Site Language.

Choose the language from the dropdown menu and click Save Changes.

2. Install a Child Theme

You can go and download a Divi Child Theme from here

Follow these steps to install & activate it:

  • Go to Appearance -> Themes -> Add New -> Upload Theme

  • Choose the zip file, you have downloaded from the link above and then click on the Install Now button.

  • After the installation was completed, click on the Activate link

3. Using your own child theme

In case you already have a child theme you need first to make some changes to it.

3.1 Create the folder structure

a. In your child theme folder create a new folder called lang
b. In the lang folder create two new sub-folders and name them:

  • theme

  • builder

The builder sub-folder will contain the translation related to Divi Builder and the theme folder will contain the translations for the Divi theme. 

3.2 Load the files from your child theme

To do so, edit the functions.php  of your child theme and place this PHP code inside:

/*================================================
#Load the translations from the child theme folder
================================================*/
function wpcninja_translation() {
load_child_theme_textdomain( 'Divi', get_stylesheet_directory() . '/lang/theme/' );
load_child_theme_textdomain( 'et_builder', get_stylesheet_directory() . '/lang/builder/' );
}
add_action( 'after_setup_theme', 'wpcninja_translation' );

4. Downloading Divi language files from here

5. Preparing the files

First install a 3rd party plugin called WP File Manager. This will help you to download and upload files directly from your dashboard without the need to login to FTP server.

Once the plugin is installed, go to the left menu "File Manager" -> wp-content / themes / Divi-child-theme-master folder, where you should see 2 subfolders:

  • theme - this will contain the Divi general translation

  • builder - this will contain the Divi Builder translation.

Once the zip file was downloaded at step 3, locate the folder called lang, open the .po file related to your language using PO Edit app (which can be downloaded from here).

Make your translations or change the existing ones and then save the file in the format of xx_XX.po  where xx indicates the country code. 

If you're not sure about the country code, you can check on this page your language and, on the 3rd line it should have the country code: 

Example: ro_RO.po  is the file name for the Romanian translation.

The saving process will create a new file with the extension of .mo

Using the File Manager plugin, upload both files xx_XX.po  and xx_XX.mo to wp-content/themes/Divi-child-theme-master/lang/theme folder.

Repeat those steps for the .po file located in the zip file downloaded at step 3 includes/builder/languages . Those are the translations files related to Divi Builder interface and elements.

Did this answer your question?