Polylang Plugin for Breakdance

Polylang4Breakdance is a little plugin that adds three new features to make life easier when using Polylang with Breakdance:

  • The new language condition lets you show/hide elements, sections or even templates for specific languages.
  • The Polylang Language element, which is a language switcher you can place anywhere on your website.
  • The brand new Menu Polylang element, which adds the language switcher as a new dropdown directly integrated into the Menu Builder.

Feel free to use it at your own risk.


The Polylang Languages element

It just works like the Language Switcher that Polylang adds in the Menu page.
Except that this time, we can add the language links anywhere in the page, and style them directly in Breakdance:

polylang element design options

The Menu Polylang element

It's a 'sub' element, that is only available for the Menu Builder. It works like the other dropdowns, it will inherit the global styles from the menu builder, but you can also customize it independently.

Menu Polylang Backend

The Condition

The condition lets you show or hide any element, section or template, for each language.
It's a great use when you want to have a different header for each language.

Note that it's the same condition as this snippet here : Polylang condition (so you don't have to manually add it, as it's now included in the plugin).