Plugin info

Total downloads: 5,452
Active installs: 10
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 5/14/2018 (2787 days ago)
Added to WordPress: 5/14/2018 (7 years old)
Minimum WordPress version: 4.0.1
Tested up to WordPress version: 4.9.28
Minimum PHP version: 5.2.4

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 2787 days ago

20/100

Is WP Country Class In Body Tag abandoned?

Possibly abandoned (last update 2787 days ago).

Compatibility

Requires WordPress: 4.0.1
Tested up to: 4.9.28
Requires PHP: 5.2.4

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

football_game_by_kashanshah
Rating 0.0/5 (0 reviews)Active installs 0

Description

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.

Installation

No installation instructions available

Frequently Asked Questions

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.

Review feed

No reviews available

Screenshots

  1. Activate the plugin

    Activate the plugin

  2. 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.

  3. "WP Country Class In Body Tag" page.

    "WP Country Class In Body Tag" page.

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

  • First release.