=== Language Switcher – Polylang for Divi ===
Contributors: coolplugins, narinder-singh, satindersingh
Tags: divi, language switcher, polylang, multilingual, languages
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.2
Stable tag: 1.0.7
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Language Switcher – Polylang for Divi – Easily add a customizable language switcher to your Divi pages using Polylang.

== Description ==

**Language Switcher – Polylang for Divi** is a WordPress plugin that helps you add a language switcher to your website using the Divi Builder. This plugin connects the Polylang multilingual plugin with the Divi theme, making it easier to build a multilingual website.

https://youtu.be/co2xvQnUmjs

Normally, **Polylang** and **Divi** don't work smoothly together when it comes to showing a language switcher inside your pages. You need to create different WordPress menus for each language, and then assign a menu to each language page manually, which is a time-consuming and tiring task. That's where **Language Switcher – Polylang for Divi** helps.

With this plugin, you can place a customizable language switcher on your Divi pages using a dedicated Divi module.

### Why use this Plugin?
**Language Switcher – Polylang for Divi** is a simple and easy way to add a language switcher to any Divi page. Here's why you should use this plugin:

* Language Switcher module
* No Separate Menus for Each Language
* Add Anywhere on the Page
* Customizable Language Switcher
* Time-saving

### Key Features

* **Support for Divi Module:** This plugin works directly inside the Divi builder. Simply drag and drop the language switcher module anywhere on your page, just like other Divi elements. No need to write any code or use external widgets. 

* **Layout Options:** The plugin offers three layout styles, Dropdown, Horizontal & Vertical. Choose how you want the language switcher to appear on your website.

* **Customize Switcher Elements:** Easily customize the appearance of the language switcher elements by enabling or disabling the following:

 * **Language Flag:**  Show a small flag icon next to each language (e.g., 🇺🇸).

 * **Language Name:** Display the full language name (e.g., English, Spanish).
 
 * **Language Code:** Show language short codes like EN, FR, DE, etc.

 * **Hide Current Language:** Hide the language that is currently active.

 * **Hide Untranslated Languages:** Hide specific languages if the current page has no translated version available in that language.

 * **Frontend Display Preview:** Preview the changes from the frontend and make sure everything appears correctly before publishing.

* Fully Compatible with Polylang Free and Pro.

* User-friendly.

* Fully Responsive.

### How to Add the Language Switcher

* Go to your WordPress Dashboard.
* Open the page, post, header, or footer where you want to add the language switcher using the **Divi Builder** or **Theme Builder**.
* Drag and drop the **Language Switcher module** to your desired section (body, footer, header, sidebar, etc.).
* Customize its layout and visibility settings according to your preferences.

### Explore More: AI Translation Addon for Polylang

* **[AutoPoly - AI Translation for Polylang](https://coolplugins.net/product/autopoly-ai-translation-for-polylang/?utm_source=lspd_plugin&utm_medium=readme&utm_campaign=get_pro&utm_content=atfp_check_out)** reduces your translation workload by translating your **Gutenberg** and **Elementor pages**, sections, and widgets within a few minutes.

* **[Language Switcher for Elementor & Polylang](https://wordpress.org/plugins/language-switcher-for-elementor-polylang/)**  is a WordPress plugin that helps you add a language switcher to your website and translate Elementor Templates. This plugin connects the Polylang multilingual plugin with Elementor, making it easier to build and manage a multilingual website visually.

* **[Polylang Duplicate Content ](https://wordpress.org/plugins/duplicate-content-addon-for-polylang/)** addon effortlessly duplicate your original or default language post content into other languages of the same post, making the translation process easier.

**Use of 3rd Party Services:** This plugin connects to the Cool Plugins API to display information about related plugins inside the dashboard. It also offers optional usage tracking and optional feedback submission on deactivation. Data is sent only after explicit user consent. No hidden tracking is performed, and no frontend visitor or site user data is collected. For more details, please review our [Data Usage Policy](https://my.coolplugins.net/terms/usage-tracking/), [TOS](https://my.coolplugins.net/terms/), and [Privacy Policy](https://my.coolplugins.net/terms/privacy-policy/).

== Screenshots == 
1. Language Switcher Module Frontend Preview.
2. Language Switcher Module Settings Preview.

== Installation ==

* **Download the Plugin**:
   * Download the **Language Switcher – Polylang for Divi** plugin ZIP file from the WordPress Plugin Repository or your preferred source.

* **Upload the Plugin to WordPress**:
   * Go to your WordPress Dashboard.
   * Navigate to **Plugins** > **Add New**.
   * Click **Upload Plugin** at the top of the page.
   * Choose the downloaded ZIP file and click **Install Now**.

* **Activate the Plugin**:
   * Once the plugin is installed, click the **Activate** button.
* **Install Polylang Plugin**:
   * This plugin requires the **Polylang** plugin to work. Make sure you have the Polylang plugin installed and activated.

* **Start Using the Language Switcher**:
   * Open the Divi Builder or Theme Builder and add the **Language Switcher** module to your page, post, header, footer, or sidebar as needed.

== Frequently Asked Questions ==

= Where can I place the language switcher on my site? =
You can place the language switcher anywhere inside a Divi layout, including:
* Pages
* Posts
* Headers
* Footers
* Sidebars

= Do I need to create separate menus for each language? =

No, unlike the default Polylang setup, you don't need to manually create or assign separate menus for each language. The plugin allows for an easier, automatic solution.

= What layout styles are available for the language switcher? =
You can choose from 3 layout styles:
* Dropdown
* Horizontal
* Vertical

= Is this plugin compatible with Polylang Pro? =
Yes, the plugin is fully compatible with both the free and Pro versions of **Polylang**.

= How do I customize the appearance of the language switcher? =
The plugin provides several customization options for the language switcher, including:
* Language flags
* Language names (e.g., English, Spanish)
* Language short codes (e.g., EN, FR, DE)
* Option to hide the current language or untranslated languages
* Layout styles: Dropdown, Horizontal, and Vertical

= Can I preview changes before publishing? =
Yes, you can preview the language switcher on your page before making any changes live. The plugin offers a frontend display preview to ensure everything appears correctly before you publish.

= Is this plugin mobile-friendly? =
Yes, the **Language Switcher – Polylang for Divi** plugin is fully responsive and will work seamlessly on both desktop and mobile devices.

= Do I need to write any code to use this plugin? =
No, you don’t need to write any code. The plugin integrates directly with the Divi Builder, allowing you to drag and drop the language switcher module anywhere on your pages without any coding.

= How can I report security bugs? =
You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team help validate, triage and handle any security vulnerabilities.[Report a security vulnerability](https://patchstack.com/database/wordpress/plugin/language-switcher-for-divi-polylang/vdp)

== Changelog ==

= Version 1.0.7 | 10 June 2026 =
- **Fixed:** Default Settings Issue with Divi 5.
- **Improved:** Code Improvements & Optimization.
- **Tested Up To:** WordPress Version 7.0.

= Version 1.0.6 | 03 December 2025 =
- **Tested Up To:** WordPress Version 6.9.

= Version 1.0.5 | 19 November 2025 =
- **Fixed:** Bug Fixes.

= Version 1.0.4 | 19 November 2025 =
- **Integrated:** Get Started Dashboard.

= Version 1.0.3 | 28 August 2025 =
- **Fixed:** Addressed security vulnerabilities.
- **Improved:** Enhanced overall code quality.

= Version 1.0.2 | 26 May 2025 =
- **Fixed:** Minor issues.

= Version 1.0.1 | 22 May 2025 =
- **Fixed:** Minor issues.

= Version 1.0.0 | 05 May 2025 =
- **New:** Initial plugin release.

 == Upgrade Notice == 
Initial release