Support » Plugins and Hacks » Cookie Control » Removing geoplugin

Removing geoplugin

  • Thanks for making this plugin.

    Would it be possible to remove geoplugin? I configured it for all countries and want to avoid the extra third party request.

    I tried to just remove the line but this breaks something.

    wp_enqueue_script(‘cookiecontrol_geo’, ‘http://www.geoplugin.net/javascript.gp’, ”, ”, true);


Viewing 1 replies (of 1 total)
  • to remove geoplugin, do the following (in version 1.5 of the Cookie Control plugin)

    wp_enqueue_script('cookiecontrol_geo', 'http://www.geoplugin.net/javascript.gp', '', '', true);

    and replace
    cookieLawApplies:function(){if(this.countryHasCookieLaw()){return true}return false}

    cookieLawApplies:function(){return true}

    not the most elegant method, but it works :o)
    note that this automatically enables cookie control for ALL countries (assuming that’s what you want)

Viewing 1 replies (of 1 total)
  • The topic ‘Removing geoplugin’ is closed to new replies.
Skip to toolbar