Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can use the plugin if-so dynamic content and set a geolocation trigger with two content versions:

    Version 1 – if a user is located in india. Use this code in the content of the version:

    <script>
    window.location.replace(“https://www.abc.com/in&#8221;);
    </script>

    Version 2 (default version): leave empty.

    After setting the trigger, paste its shortcode in the homepage and you are done.

    Thread Starter benporat76

    (@benporat76)

    I did some further tests.
    The problem is in my child theme in the function php file.
    The line that causes the problem is:

    wp_enqueue_script(‘general_js’, get_stylesheet_directory_uri() . ‘/js/general.js’, array(‘jquery’));

    -when I delete it evrything works fine.
    -when I keep it but delete the content in general.js file the problem still hapandes.

    I understand it’s not under your Area of ??responsibility so unless the answer is simple and fast for you I thannk you for the great support!!

Viewing 2 replies - 1 through 2 (of 2 total)