Skip Navigation
September 8, 2020

WPML lets you easily translate your Widgets via the String Translation screen. This requires that the WPML String Translation module is installed. The module is available with the Multilingual CMS account type.

WordPress ships with a few default widgets. WPML will automatically register these for translation the moment you install WPML String Translation.

Visit WPML → String Translation and you will see all the default widgets registered under the Widgets domain for you to translate.

Finding default widget strings for translation in String Translation
Finding default widget strings for translation in String Translation

Translating custom widgets

Themes and plugins often also provide custom widgets, or you may be coding your own widgets. If this is the case, you will notice that these widgets may not always show up automatically for translation on the String Translation page; or perhaps only the widget title registers but not other widget texts.

There are two ways to let WPML know that these exist and to register them for translation.

Registering widget fields using code

For this, please see our detailed documentation about registering widget fields using code.

Registering widget fields using String Translation

One of the advanced features of String Translation is that it allows admins to select texts that are saved in the wp-options database table and register them for translation. Since WordPress widgets save their texts inside the wp-options table, this means that widgets also benefit from the feature.

Follow the steps outlined in our documentation to find and register the widget strings you would like to translate.

Once your widget strings have been added to the String Translation page, you can translate them as normal.

Using different widgets for different languages

Besides translating widgets, WPML also allows you to display different widgets for different languages.