This plugin is developed to add visitor's country class on the body tag of the page to use in displaying country based content on the website! By …
Author: | Kashan Shah (profile at wordpress.org) |
WordPress version required: | 4.0.1 |
WordPress version tested: | 4.9.5 |
Plugin version: | 1.0.2 |
Added to WordPress repository: | 14-05-2018 |
Last updated: | 14-05-2018
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | http://kashanshah.ga |
Total downloads: | 3 792 |
Active installs: | 20+ |
Click to start download
|
Screenshots
Activate the plugin
Guide about the plugin may be found in "WP Country Class In Body Tag" option under Settings in menu bar.
"WP Country Class In Body Tag" page.
FAQ
Does it use any third-party API?
Yes, it uses geoplugin API http://www.geoplugin.net
Does it add any css or js?
No, this plugin does not add any css/js. It only adds a body class respective to the country of the website visitor.
What is the class added in body for a visitor from US?
‘wpcountryclass-US’ and ‘wpcountryclass-detected’ are added as classes in body tag for a user from US. Similarly, ‘wpcountryclass-detected’ and ‘wpcountryclass-PK’ will be added when the visitor is from Pakistan. and so on it will add ‘wpcountryclass-detected’ and ‘wpcountryclass-[ISO ALPHA-2 Code]’ whenever any visitor visits the website.
Does it also adds a class if the country is not detected?
Yes, ‘wpcountryclass-not-detected’ is added when country of the user’s IP is not detected.
ChangeLog
1.0.2
- Plugin file comments updated
1.0.1
- No change in functionality and the code
- Icons, Screenshots, Detailed description and FAQs added
- Plugin name changed to “WP Country Class In Body Tag” from “WP Country Class”
- Compatibility tested upto 4.9.5
1.0.0