This plugin is outdated and might not be supported anymore
WP Country Class In Body Tag

WP Country Class In Body Tag

Details
View on WordPress

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 using the country class, the developer may show/hide/modify content with css/js. It uses a 3rd Party API (GeoPlugin.net) for this purpose. It send the user’s IP Adress to GeoPlugin.net, i.e. http://www.geoplugin.net/json.gp?ip=XXX.XXX.XX.XXX, which in response returns the geo-location information about that IP Adress, out of which our plugin adds the country code as classname in the body tag.

Details

Plugin code:
wp-country-class-in-body-tag
Plugin version:
1.0.2
Outdated:
Yes
WP version:
4.0.1 or higher
PHP version:
5.2.4 or higher
Test up to WP version:
4.9.26
Total installations:
10
Last updated:
2018-05-14
Rating:
Times rated:
0
body-tag
country-names
developers