Connect Polylang for Elementor

Опис

Connect Polylang multilingual plugin with Elementor Page Builder: Translate your Elementor templates and show them in the correct language, native customizable Language Switcher Elementor widget, Visibility Conditions of widgets and Dynamic Tags by language and much more…

Що робить плагін

📍 Template translation and show in the correct language

Create translations for your Elementor templates especially for header, footer or archive templates with Elementor Pro Theme Builder (affiliated link).

  • Automatically selects the correct translation for “Template Widget”.
  • Automatically selects the correct translation for [elementor-template id="1234"] shortcodes.
  • Allow Elementor Kit translation for different settings for each language.

🔄 Language Switcher

A native Elementor Widget to easily build a nice and fully customizable language switcher:

  • Show or hide flags, language name, language code.
  • Vertical list, Horizontal list or styled dropdown.
  • SVG scalable flags.

👁️ Language Visibility Conditions

Allow to show or hide every widget, section or column by language.

🏷️ Language Dynamic Tags

Use language dynamic tags (on Elementor Pro) that you can set with an specific language or the “current” one. Available tags are:

  • Language Code tag type text
  • Language Name tag type text
  • Language Url tag type url
  • Language Flag tag type image

✏️ Elementor Editor integration

Now you can view the language of the current template and change to its translations or create them from the Elementor editor.

🔍 Elementor Finder integration

From Elementor Finder you can access to Polylang settings pages and go the site in the selected language.

🔨 Plugins integration fixes and tweaks

  • Automatically generate display conditions on new template translation.
  • Automatically generate Elementor CSS styles on create new template translation.
  • Fix home url to the current language on site-url Dynamic Tag and Search Form widget.
  • Add language url trailing slash.
  • Hide language on wp-admin for global widgets.
  • Other integration fixes.

How to use

You can manage translated templates in two ways:

  • (recommended) create linked translations for a template and only set display conditions on the default language.
  • create separated translations for a template with their own display conditions.

See an example:

Site languages:
 - EN (main)
 - ES
 - IT

- Option 1 (linked translations only main language has display conditions):
╔═ Archive Template A (EN) -> condition category is "Red (EN)"
╠═ Archive Template A (ES) -> none (in front checks if category is ES translation of "Red (EN)")
╚═ Archive Template A (IT) -> none (in front checks if category is IT translation of "Red (EN)")

- Option 2 (not linked translations, all languages has display conditions):
══ Archive Template B (EN) -> condition category is "Red (EN)"
══ Archive Template B (ES) -> condition category is "Rojo (ES)"
══ Archive Template B (IT) -> condition category is "Rosso (IT)"

Support

  • Plugin’s support forum here on WordPress.org
  • Github plugin repo
  • Polylang User Community Group at Facebook
  • What is covered by our support? – All regarding THIS plugin (“Connect Polylang for Elementor”), plus the relation to Polylang, Polylang Pro, Elementor and Elementor Pro of course.
  • Що НЕ охоплюється підтримкою? – Щось загальне щодо багатомовних тем та WordPress. Просто НЕ пропонуємо будь-яку підтримку «WPML», «WPBakery» або «Visual Composer», а також не для вашої теми тощо. !!!

Переклади

We have used the strings of Elementor and Polylang whenever possible to take advantage of the fact that they are translated into many languages. For the other strings a .pot file (connect-polylang-elementor.pot) for translators is also always included 🙂

You can collaborate with your language translations in Translating WordPress

Учасники

The following code/classes are licensed under the GPL.

  • v2. refactor and upgrade by Pacotole at Creame
  • v2.1 Cross domain fixes based on work of Jory Hogeveen and nicmare
  • Support Brad Johnson
  • v1. released by David Decker
  • Клас перемикача Polylang (віджет Elementor) та його CSS на основі віджета з плагіна”Language Switcher for Elementor” by Solitweb (GPLv2 or later)
  • SVG flags from FlagKit and Wikipedia

Please, send your suggestions and feedback – Thank you for using or trying out this plugin!

Скріншоти

  • Language Switcher examples
  • Widget Visibility Conditions
  • Dynamic Tag example
  • Elementor Editor translations integration

Встановлення

Мінімальні вимоги

  • WordPress version 4.7 or higher
  • Elementor and Polylang плагін – безкоштовна версія з каталогу плагінів WordPress.org
  • Recommended: Elementor Pro (affiliate link) which is needed for Theme Building possibilities (header, footer, 404, archive templates, etc.) and Dynamic Tags.

Встановлення

  1. Встановіть за допомогою вбудованого інсталятора плагінів WordPress (за допомогою Плагіни & gt; Додати новий – шукайте connect polylang elementor), або витягніть файл ZIP і опустіть вміст у wp-content/plugins/ каталог вашої інсталяції WordPress.
  2. Активувати плагін через меню ‘Plugins’ в WordPress.
  3. Призначайте мови для своїх сторінок / публікацій / шаблонів Elementor
  4. Для шаблонів Elementor: встановіть умови відображення в Elementor лише для одного шаблону (рекомендується ваша основна мова) – тоді шаблони іншими мовами будуть чарівно завантажуватися через цей плагін! 🙂
  5. Додатково використовуйте власний віджет Elementor: Switcher Polylang

Часті питання

Рекомендований робочий процес?

  1. Спочатку налаштуйте Polylang, додайте принаймні ДВІ мови, одна з них зробить вашу мову за замовчуванням (у Polylang)
  2. Додайте вміст до вашої мови Polylang за замовчуванням – якщо Polylang просить вас застосувати до нього наявний вміст, швидше за все, натисніть кнопку “ОК” і продовжуйте – це працює дуже добре 🙂
  3. Після цього налаштуйте шаблон Elementor Theme Builder – призначте його вашій мові Polylang за замовчуванням, застосуйте умови в Elementor
  4. Далі, налаштуйте шаблон перекладу для шаблону 3.) – призначте другу мову Polylang, НЕ застосовуйте умови в Elementor

Де можна знайти віджет Elementor?

It’s in the widget category “General Elements” with the name “Language switcher”. Plus, if Elementor Pro is active and you’re editing a template, the widget additionally appears in the “Site” widget category.

Завжди за допомогою пошуку: Під час пошуку віджетів введіть “polylang” або “мови”, і він одразу з’явиться! 😉

Де знаходиться сторінка налаштувань плагіна?

Цей плагін НЕ має сторінки налаштувань, оскільки він йому не потрібен. Все, що він робить, працює просто під капотом. Активуйте плагін. Готово.

Чи потрібен Elementor Pro?

Технічно Elementor Pro не потрібен – але настійно рекомендується.

Elementor Pro (affiliate link) is required for these features of the plugin:

  • Translate Elementor Theme Builder Templates (header, footer, 404, page, archives).
  • Translate Elementor Popups.
  • Динамічні теги, додатково додані плагіном

Для інших функцій плагіна достатньо звичайної безкоштовної версії Elementor – тому віджет рідної мови перемикання мови Elementor також буде працювати таким чином 😉

Is Polylang Pro required?

Polylang Pro is not required.

All features of “Connect Polylang for Elementor” work with both, Polylang and Polylang Pro.

Чи підтримуються власні прапори?

Загалом, власні прапори підтримуються в Віджет Polylang Switcher Elementor і в Динамічному Тегу (Прапор Поточної Мови).
Однак прапори за замовчуванням у Polylang мають розмір 16px широкий і 11px високий, це автоматично застосовується до спеціальних прапорів, оскільки він повністю обробляється Polylang внутрішньо.

Щоб використовувати інший розмір для спеціальних прапорів, ми намагаємось знайти способи реалізувати це для Elementor у майбутніх версіях цього плагіна.

Типографіка та налаштування верхнього регістру?

У віджеті Polylang Switcher Elementor є параметри типографіки, доступні для пунктів меню Switcher. Ці налаштування, звичайно, засновані на CSS і застосовуються “глобально” до різних станів, для яких вони призначені: звичайний, наведений, активний (поточна мова). Доступні перемикачі для верхнього регістру виконуються за кодом і тому мають нижчий пріоритет – це означає, що CSS завжди бере на себе, якщо хоче. Таким чином, ви найбільш гнучкі за допомогою швидких налаштувань (перемикань), але при необхідності маєте під рукою всі варіанти стилізації.

Інші рекомендовані плагіни для багатомовних веб-сайтів?

Їх досить багато:

Відгуки

15.02.2024
I use JetEngine to create custom post types and taxonomies, and I use Polylang Pro for translation. I also use this plugin to connect with Elementor. The default language of my website is English (EN) and the second language is French (FR). However, when I click on category links (i.e., taxonomies), even though the link is in English, it redirects me to French. for example:/service-cats/test -> /fr/service-cats/test My settings in the language section under URL modifications include: The language is set from the directory name in pretty permalinks.Hide URL language information for the default language.Remove /language/ in pretty permalinks. These settings have caused SEO issues for my website.
13.02.2023
Just when you starting thinking about how you are going to display variations for a language-sensitive task, this plugin always saves the day. From displaying link variations in nav menus, to alternative buttons and widgets. An essential addon for any Elementor-based multi-regional site.The setup is so easy to understand and work with, with everything set to work the 'Elementor way'.
11.02.2023
Good afternoon, I wanted to ask, I have ElementorPro, do I need to install Polylang Connect for Elementor + Polylang or will only Polylang Connect for Elementor be enough?
Прочитати всі 47 відгуків

Учасники та розробники

“Connect Polylang for Elementor” — проект з відкритим вихідним кодом. В розвиток плагіну внесли свій вклад наступні учасники:

Учасники

“Connect Polylang for Elementor” було перекладено на 7 локалізацій. Дякуємо перекладачам за їх роботу.

Перекладіть “Connect Polylang for Elementor” на вашу мову.

Цікавитесь розробкою?

Перегляньте код, перегляньте сховище SVN або підпишіться на журнал розробки за допомогою RSS.

Журнал змін

2.4.4

2.4.3

  • Automatically generate CSS file on bulk translation (thanks to @Elisa3232).
  • Fix PHP error when PLL()->curlang not defined (thanks to @timsgr).

2.4.2

  • Fix deprecation notices for Polylang 3.4.
  • Bump tested versions WordPress 6.3 & Elementor 3.13.

2.4.1

  • Fix plugin submission to wordpress.org.

2.4.0

  • NEW language visibility conditions now also works for Flexbox containers.
  • NEW Flag emojis on Elementor Editor and Theme Builder.
  • Change languages styles on Elementor Editor.
  • Change code improvements.

2.3.5

  • NEW Elementor Widget Template translation.
  • Change better languages links on Elementor Editor.

2.3.4

  • Fix Elementor 3.9 hard deprecations.
  • Fix JetMenu with domains as language (thanks to @mortenitp).

2.3.3

  • Fix PHP warning on multidomain image undefined srcset.
  • Bump tested versions WordPress 6.1 & Elementor 3.8.

2.3.2

  • Fix dynamic tag image language flag don’t return svg scalable file.
  • Fix Language Switcher dropdown styles with many languages.
  • Fix PHP error undefined array key “HTTP_REFERER” (thanks to @nicomollet).

2.3.1

  • Fix Widget initialization on Elementor 3.7

2.3.0

  • Added dropdown controls to show on mouse hover and drop to up.
  • Added Elementor Kit translation support.

2.2.0

  • Added Elementor Pro template shortcode translation.

2.1.1

  • Enable Elementor cross domain url fixes only for multidomain configurations.
  • Added Elementor tested headers.

2.1.0

  • Fixed cross domain issues with Polylang setup with multiple domains.
  • Fix flag SVG inline with some themes.

2.0.8

  • Don’t load integrations if Polylang languages are not defined.

2.0.7

  • Fixed deprecated message with Elementor 3.6.
  • More restricted filter for lang home urls with trailing slash.

2.0.6

  • Fixed Elementor Search Form url with correct language.

2.0.5

  • Use Polylang custom flags.

2.0.4

  • Added better info of template instances for translations on Theme Editor and WP admin list.
  • Minor tweaks on Language Switcher dropdown styles.

2.0.3

  • Updated language switcher dropdown animated & toogle on mobile.
  • Added Elementor icon in posts list status.
  • Fixed language switcher underline style.
  • Fixed SVG flags if encoded is disabled.
  • SVG flags data URIs don’t need base64 and save some bytes.

2.0.2

Fixed fatal error if call home_url() before initialize Polylang.

2.0.1

Fixed critical error loading plugin classes when there are uppercase letters in the path.

2.0.0

Fully rewrited and upgraded!!

  • New language switcher with SVG scalable flags and dropdown style.
  • New language visibility conditions for widgets, sections and columns.
  • New dynamic tags for language name, language code, language flag (icon or svg scalable) and language url.
  • Better Polylang/Elementor integration:
    • Automatically generate display conditios on new template translation.
    • Automatically generate CSS file on new template translation.
    • Update display conditios un change template language.
    • Fix home and search links to point to the current language.
    • Hide langue on wp-admin for global widgets.

1.0.6 – 2021-06-05

  • Fixed PHP notice undefined ‘post_type’.

1.0.5 – 2021-05-17

  • Fixed Elementor editor don’t load with Global Widgets in secondary language.

1.0.4 – 2021-04-30

  • Translated templates with conditions for categories/tags also works with translated categories/tags.
  • Fixed PHP notice on activation

1.0.3 – 2021-04-27

  • Ensure Theme Builder conditions for all languages (prev. version only saves main language conditions)
  • When a template is a translation override with empty conditions

1.0.2 – 2021-04-26

  • Fix Elementor template display conditions reset
  • Fix wp-cli error languages undefined
  • Fix Elementor deprecations
  • Added Elementor Landing Pages CPT translatable
  • Added JetEngine Listing CPT translatable
  • WordPress PHP Coding Standards

1.0.1 – 2020-06-17

  • Stability update for edge cases were experiencing fatal errors
  • Thanks to sebastienserre for correct fatal unknow pll_the_languages();

1.0.0 – 2018-11-28

  • Офіційний публічний випуск на WordPress.org

0.9.1 – 2018-11-27

  • First Release Candidate (RC) version
  • Нове: автоматичне ввімкнення типу публікації Elementor My Templates для підтримки Polylang
  • Твік: вдосконалення коду на всьому протязі
  • Твик: Вбудована документація та вдосконалення документації PHP

0.9.0 – 2018-11-26

  • Друга бета-версія
  • Нове: Додаткові налаштування віджета Polylang Switcher
  • Tweak: Improved Dynamic Tags additions
  • Твік: Покращена інтеграція Elementor Finder

0.8.0 – 2018-11-25

  • Перша бета-версія
  • New: Added native Elementor Widget – Polylang Language Switcher
  • New: Added Dynamic Tags for Polylang (requires Elementor Pro)

0.7.0 – 2018-11-24

  • Друга альфа-версія
  • Нове: Додана інтеграція Elementor Finder для посилань та ресурсів плагіна Polylang
  • Нове: Зроблено плагін перекладним – додано німецький переклад
  • Нове: Додано файл Readme, а також composer.json
  • Нове: Перший публічний альфа-реліз на GitHub

0.5.0 – 2018-10-30

  • Ідея плагіна від Бреда
  • First alpha version by David
  • Нове: Налаштування шаблонів працюють у формі коду плагіна – вдосконалення стандартів кодування