BACK TO DIRECTORY

WP Country Class In Body Tag

by kashanshah

0.0
(0 ratings)

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.

Screenshots

Activate the plugin

Activate the plugin

Guide about the plugin may be found in "WP Country Class In Body Tag" option under Settings in menu bar.

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.

"WP Country Class In Body Tag" page.

Plugin Details

Active Installs
10
Total Downloads
20,483
Version
1.0.2
Requires WP
4.0.1
Requires PHP
5.2.4
Tested Up To
4.9.31
Added
2018-05-14
Last Updated
2018-05-14 10:47pm GMT

Ratings

5
0
4
0
3
0
2
0
1
0