WPML

Learn how to translate any WordPress widget with WPML, including block-based, legacy, and custom built.

Widgets in the sidebar in English
Widgets in the sidebar in English
Widgets in the sidebar in French
Widgets in the sidebar in French

Required Plugins

To translate widgets, install and activate:

  • WPML
  • WPML String Translation

How to Translate Widgets 

WPML can translate any type of widget. This includes:

Widgets added to posts
and pages

Classic block-based
widgets

Legacy widgets

Custom widgets

Translate Widgets Added to Individual Posts and Pages

To translate widget blocks that you can insert inside any content, including posts and pages:

  1. Go to WPMLTranslations.
  2. Select the content (posts, pages, etc.) containing your widget.
  3. Choose a translation method and translate.

WPML translates your widget along with the rest of the page contents.

Translate Classic Block-Based Widgets

To translate classic, block-based widgets that you add to widget areas using the Appearance Widgets page:

  1. Go to WPML Translations.
  2. On the Dashboard tab, scroll down to the Block section and expand it. The section appears once a widget area holds block-based widgets.
  3. Select the widget area containing your widgets (e.g., “Widgets – Blog Sidebar”).
  4. Choose a translation method and translate.

Translate Legacy Widgets

To translate the old legacy widgets that are not block-based:

  1. Go to WPML  → Translations.
  2. Scroll down to the Other texts (Strings) section and select your widget texts.
Selecting widgets texts in the Translation Dashboard
Selecting widgets texts in the Translation Dashboard
  1. Choose a translation method and Translate.

If you can’t find your widget texts on the Dashboard tab:

  1. Go to WPML → Translations and open the Strings tab.
  2. In the Utilities panel at the bottom of the page, find Not seeing strings that you are looking for? and click Admin Texts Translation.
Clicking Admin Texts Translation
Clicking Admin Texts Translation
  1. Select the widget texts you want to translate and click Add to String Translation.

You can now translate these widget texts on the Dashboard tab.

Translate Custom Widgets

To translate widgets you developed yourself, you first need to register them in WPML. Once registered, you can translate your widgets from the Other texts (Strings) section on the Dashboard tab.

Display Different Widgets in Each Language

To display different widgets in each language:

  1. Go to Appearance → Widgets.
  2. Click the widget you want to limit, then open its Display on language panel in the block settings sidebar.
  3. Choose the language you want to display the widget in.
Setting display conditions for block-based widget
Setting display conditions for block-based widget
Setting display conditions for classic widget

Written by Amir · Last updated August 20, 2025