Support » Plugin: Geolocation IP Detection » Region select

  • Hello,

    I’ve been testing this plugin and the documentation and features seem promising for a project I’m working on.

    My goal is to use this plugin to show country-specific content on certain pages. (using the shortcodes provided by the plugin)
    We have a certain set of countries which we will have specific content. (US, CA, GB, …).
    But we also would want the option to be able to switch between these countries so you can access any country-specific content.

    In the documentation there is an option to activate a cookie being held in order to show country specific content.

    I added the snippet to my functions.php but I don’t see it log this cookie.
    How do I get this cookie to work?
    Also is it possible to overwrite the cookie with another value so it would load in the different country-specific content I mentioned?

    I’m using the latest wordpress version (5.6) and the Avada theme.
    I’ve deactivated WProcket in hope that this would be the culprit but this wasn’t the case.

    Is there something I’m missing here?

    screenshot of the settings:

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Joris


    I found this thread where the feature I’m looking for also was mentioned.

    – Overriding the IP-based decisions of geoip_detect2_show_if

    I will add a wordpress filter geoip_detect2_shortcode_show_if_ip_info_override in the next plugin version that will allow you to do so.

    Has this feature been implemented?

    Plugin Author Benjamin Pick


    Yes, geoip_detect2_shortcode_show_if_ip_info_override is working, but only without AJAX mode. You’re right, overriding the cookie would be the smartest solution. I will provide an API function for this in the upcoming 4.0 …

    I will track the progress here:

    Plugin Author Benjamin Pick


    It’s not a cookie anymore, actually, it’s stored in localstorage. Yes, you could manipulate this dataset manually for now. And 4.0-beta has shortcode support in AJAX mode.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.