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 …
As of April 2026, WP Country Class In Body Tag is a WordPress body tag plugin with 10 active installations and a 0/5 rating0. It has been downloaded 19K+ times in total. Requires WordPress 4.0.1+ and PHP 5.2.4+. Available on WordPress.org since 2018. Last updated 7 years ago — may have compatibility concerns. Top alternative: football_game_by_kashanshah.
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.
| WordPress | 4.0.1+ requiredTested up to 4.9.29 |
| PHP | 5.2.4+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.