How to: WordPress Multilingual CMS Content Blocks, Widgets and Sidebars

Building multilingual sites with WordPress and WPML is easy. The additional control with WYSIWYG Content Blocks, powerful visibility control over widgets and sidebars you get with Widgets Control and its compatibility with WPML (1) make it a very powerful combination.

WPML lets you translate pages, posts, custom types, taxonomies, menus and even gives you control over plugin and theme text translations.

Widgets Control is a toolbox that allows to manage the visibility of widgets, whole sidebars, sections of content within your pages and posts (and other post types like products, events, …) and it provides WYSIWYG Content Blocks that can be used with widgets, sidebars and shortcodes.

Providing an ample set of conditions, Widgets Control allows you to restrict where sections of content, widgets or even complete sidebars will be displayed. Combined with WPML, it allows to show these based on language(s).

Some example cases where this comes in handy:

  • Multilingual Content Blocks from Widgets Control combined with WPML’s translation features are a straight-forward way of providing dynamic, language-aware pieces of content that you can use and reuse in widgets or embed on your pages.
  • You can show or hide a section of content embedded on a page for one or more languages.
  • Hide or show a widget based on the current language displayed. You can use this to show a widget only for a certain language, for a set of languages or exclude it from being displayed on pages in one or more languages.
  • You can show or hide a complete sidebar based on the language displayed. If you combine this with the advanced custom sidebars that Widgets Control Pro provides, you have a very organized way to manage language-based sidebars.

Multilingual Content Blocks

Widgets Control provides WYSIWYG Content Blocks that can be used directly in sidebars. You can even embed these blocks on your pages using a shortcode. If you translate them with WPML, you have a quick and easy way to use multilingual content blocks.

Here’s how to do it:

  1. Enable translation for Content Blocks.
  2. Create a new content block with default content in English.
  3. Translate the content block into the languages used on your site.
  4. Add a Content Block widget to the sidebar where you want to display the new content block.

That’s all you need to do, now you have a content block that automatically displays its content in the language used to view your site by your visitors.

Language-based Widget or Sidebar Visibility

With Widgets Control you can display or hide sidebars and widgets based on languages. So for example, you could display a particular widget only for pages in English, or for posts viewed in Chinese and Japanese. This makes it very easy to provide variations that depend on the language or a set of lunges.

The same thing applies to hide them: maybe you want a widget that never shows when your visitors view your site in Spanish or Portuguese. Widgets Control with WPML makes that ridiculously easy.

Here’s a simple example on how to show a widget only for English and German:

  1. Add a new widget.
  2. Use the widget’s Visibility option “Show only on these pages”
  3. In the widget’s Conditions indicate [language:en,de]
  4. Add the widget to a sidebar.

And if you need to go a step further, Widgets Control Pro even allows you to combine conditions with exclusions.

How about showing a widget only on content viewed in English but not on pages? Consider it done with WPML and Widgets Control Pro.

More info and documentation

There are endless use cases for the Widgets Control – WPML combination. If you’d like to read more about how to use languages conditions, please review the documentation:

To learn more about Content Blocks:

If you’re interested in using custom sidebars, please have a look at

Thanks for reading! If you have questions, please feel free to post your comment below.

(1) Widgets Control is compatible with WPML and has been tested by the WPML Team. Widgets Control Pro is the premium version whose features include extended support for post types, page hierarchies, roles and groups, advanced conditions with exclusions and custom sidebars.

4 Responses to How to: WordPress Multilingual CMS Content Blocks, Widgets and Sidebars

  1. said December 30, 2020 at 6:11 pm #

    Thank you for the quick response. There is only one question left when buying. Can an automatic Pro product on WordPress bear or need some modifications. I wish you a happy year.

  2. said December 28, 2020 at 8:03 pm #

    Hello, I am interested in a pro. I have some questions whether to buy the add-on once or to renew the purchase every year

Leave a Reply

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account