(Pop-up) Suggest a localized version

Show a pop-up suggesting a localized version of the page based on the user's location or browser language.

Use cases

  • Ask visitors if they prefer to visit a translated version of a page.
  • Create a page with an overview of your product in your visitor’s language. Suggest the page when visitors visit the site for the first time (or at another point on their journey).

Targeting options

  1. User’s location – continent, country, state, or city
  2. Browser language – can be set instead or in addition to the geolocation condition. This option allows you to target visitors in their language when they traveling abroad.

Step-by-step: Applying the pop-up on your site

The pop-up functionality requires both If-So and the Trigger Events extension. Please make sure you have both activated on your site.

  1. Click the “Edit Template” button.
  2. Customize the template, and click “Copy Code“.
  3. On your WordPress dashboard, go to “If-So → Add New Trigger”.
  4. Select the condition for displaying the pop-up (under version A).
  5. Paste the template code in the dynamic version’s content field. Make sure you are in “Text” mode.
  6. Content: Click the “edit template” button (on this page), and copy the template’s code. Paste the code on your dynamic version content field (make sure to paste the code in “Text mode”).
  7. Default version – leave blank.
    * If you want to display the pop-up without setting a condition, skip steps 4 and 5 and paste the pop-up’s content in the default version content field.
  8. Press “Publish”, and look for the trigger ID (in the trigger’s shortcode)
  9. Paste the following shortcode anywhere on your page/s. Replace the shortcode’s ID (123) with the ID of the trigger you created in the previous steps.
[ifso id="123" ajax="yes" display="modal" closebtn=".ifso-pt-close-button"]

Display the pop-up on all website pages

  1. On your WordPress dashboard, go to “If-So → Settings”.
  2. Paste the shortcode from the previous step into the “Load extra content on all pages” field (make sure to paste the code in “Text mode”).
  3. Optional – Exclude pages for which you don’t want to display the content (Learn more)
  4. Click “Save“.

* In addition to the conditions offered by If-So for displaying the pop-ups, pop-ups can also be displayed only after one of the following on-page events has occurred: Click, Scroll, Inactivity, Delay, or Exit Intent. Learn more.

Setting up an alternative close button

By default, click the pop-up’s overlay (background) or the closing X at the top-right corner closes the pop-up.

If you want to override this option, add the parameter closebtn=”your-attirbute-selector” to the trigger’s shortcode. The value of the parameter should be a Class or ID of an element that you wish to set as a closing button.

Make sure you include the dot (.) or the number sign (#) before the selector name.

In the following example, clicking an element with the ID #PopUpClose will close the pop-up:

[ifso id='393241' ajax='yes' display='modal' closebtn='#PopUpClose']
brush-icon EDIT TEMPLATE


Browser Language, Geolocation, Pop-Ups

Edit Template

COPY CODE reset-button
Related Assets
Countdown (timer)
🕐 Our next webinar

25.10 | 17:00 UTC

7:00 according to your time zone (Los_Angeles)

Event Invitation