Support » Plugin: Cookie Control » Removing geoplugin

  • handig


    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’, ‘’, ”, ”, true);

Viewing 1 replies (of 1 total)
  • Ewout


    to remove geoplugin, do the following (in version 1.5 of the Cookie Control plugin)

    wp_enqueue_script('cookiecontrol_geo', '', '', '', 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.