Plugin hau ez da probatu WordPressen azken 3 bertsio garrantzitsuenekin. Baliteke, jada, mantentze edo euskarririk ez izatea, eta, WordPressen bertsio berriagoekin erabiltzen denean, bateragarritasun arazoak izan ditzake.

WP Country Class In Body Tag


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 ( for this purpose. It send the user’s IP Adress to, i.e., 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.


  • Activate the plugin
  • 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.


Does it use any third-party API?

Yes, it uses geoplugin API

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.


Ez dago berrikuspenik plugin honentzat.

Laguntzaileak eta Garatzaileak

“WP Country Class In Body Tag” software librea da. Ondoko pertsonek egin dizkiote ekarpenak plugin honi.


Aldaketen loga


  • Plugin file comments updated


  • 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


  • First release.