🎉 Use coupon MYXERO to enjoy 20% recurring discount on any plan. View Pricing
WP Country Class In Body Tag

WP Country Class In Body Tag

0/5 (0 ratings) 10 active installs Updated May 14, 2018
Activate the plugin

Activate the plugin

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.