Articles on: FAQs

How to display popups on specific localizations in multilingual websites

If your website is available in multiple languages, you may want to show popups in certain localizations only. Here’s how you can do it using the appropriate display rules:

Create a separate popup for each language you have on your website. For example, if you're using English and French, you'll create one popup in English and one in French. Each popup will be set to only appear on its respective language version of your site.

For the English popup, you'll want to exclude the French version of your site. To do this, go to Display Settings -> Display Pages. Turn off Display on all pages and add this rule:
Rule: PAGE URL: does not contain /fr
This rule ensures that the English popup will NOT be displayed when the /fr localization is not found in the URL.

For the French popup, you’ll want to include the French version of your site. To do this, go to Display Settings -> Display Pages. Turn off Display on all pages and add this rule:
Rule: PAGE URL: contains /fr
This rule ensures that the French popup will be displayed only when the /fr localization is found in the URL.


Display Pages

If your website is in three languages, follow a similar approach:
Popup 1: English version - PAGE URL: does not contain /zh and /fr
Popup 2: Chinese version - PAGE URL: contains /zh
Popup 3: French version - PAGE URL: contains /fr


List of other languages.

Updated on: 11/03/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!