Country detect plugin for Craft CMS 3.x. For Country Detect to work, your website must be going through Cloudflare. On your domain's settings screen go to Network and ensure IP Geolocation is turned on.
This plugin requires Craft CMS 3.0.0-beta.23 or later.
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require serieseight/country-detect
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Country Detect.
{{ craft.countryDetect.country }}
Built by Series Eight.
Based on Country Detect by Mutual.