Skip Navigation
Updated
February 10, 2025

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 Spanish

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 WPMLTranslation Management.
  2. Select the content (posts, pages, etc.) containing your widget.
  3. Choose a translation method and translate.

WPML will translate 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 Translation Management.
  2. Scroll down to the Block section and expand it.
  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  → Translation Management.
  2. Scroll down to the Other texts (Strings) section and select your widget texts.
Selecting widgets texts in Translation Management
Selecting widgets texts in Translation Management
  1. Choose a translation method and Translate.

If you can’t find your widget texts in Translation Management:

  1. Go to WPML → String Translation.
  2. Expand the Not seeing strings that you are looking for? section 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 in Translation Management.

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 in Translation Management.

Display Different Widgets in Each Language

To display different widgets in each language:

  1. Go to Appearance → Widgets.
  2. Edit your widget and open the language dropdown.
  3. Choose the language you want to display the widget in.
Setting display conditions for block-based widget
Setting display conditions for classic widget