This thread is resolved. Here is a description of the problem and solution.
Problem:
You are using the WPML plugin with Age Gate v3.6.0 and want to add a language switch button to the age gate pop-up. You are unsure if the language switch is automatically shown based on the user's system language setup or if you need to add a switch button manually.
Solution:
The Age Gate plugin may not include built-in support for WPML’s language switcher inside the pop-up. Adding a standard language switcher there likely isn’t possible out of the box. We recommend trying to add a WPML language switcher manually using the shortcode method, as outlined in our documentation: Adding Language Switchers using PHP and Shortcodes.
However, because the Age Gate is a pop-up (not a regular post or page), WPML may not recognize the context properly, meaning the shortcode might not render as expected.
As a fallback, you can manually insert links to your other language versions inside the pop-up, like so:
<a href="https://yoursite.com/en">English</a> | <a href="https://yoursite.com/fr">Français</a>
This won't offer the full WPML switcher functionality (like flags or dropdowns), but it does provide users a way to switch languages.
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket at WPML support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 1 reply, has 0 voices.
Last updated by 1 month, 3 weeks ago.
Assisted by: Bruno Kos.