Title: WP Country Class In Body Tag
Author: kashanshah
Published: <strong>14 maio, 2018</strong>
Last modified: 14 maio, 2018

---

Pesquisar plugins

Este plugin **não foi testado com os 3 lançamentos principais mais recentes do WordPress**.
Ele pode não ser mais mantido ou suportado e pode ter problemas de compatibilidade
quando usado com versões mais recentes do WordPress.

![](https://ps.w.org/wp-country-class-in-body-tag/assets/icon.svg?rev=1874298)

# WP Country Class In Body Tag

 Por [kashanshah](https://profiles.wordpress.org/kashanshah/)

[Baixar](https://downloads.wordpress.org/plugin/wp-country-class-in-body-tag.1.0.2.zip)

 * [Detalhes](https://br.wordpress.org/plugins/wp-country-class-in-body-tag/#description)
 * [Avaliações](https://br.wordpress.org/plugins/wp-country-class-in-body-tag/#reviews)
 * [Desenvolvimento](https://br.wordpress.org/plugins/wp-country-class-in-body-tag/#developers)

 [Suporte](https://wordpress.org/support/plugin/wp-country-class-in-body-tag/)

## Descrição

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.

## Capturas de tela

[⌊Activate the plugin⌉⌊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.⌉[

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.⌉[

“WP Country Class In Body Tag” page.

## Perguntas frequentes

  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.

## Avaliações

Não há avaliações para este plugin.

## Colaboradores e desenvolvedores

“WP Country Class In Body Tag” é um programa de código aberto. As seguintes pessoas
contribuíram para este plugin.

Colaboradores

 *   [ kashanshah ](https://profiles.wordpress.org/kashanshah/)

[Traduzir o “WP Country Class In Body Tag” para seu idioma.](https://translate.wordpress.org/projects/wp-plugins/wp-country-class-in-body-tag)

### Interessado no desenvolvimento?

[Navegue pelo código](https://plugins.trac.wordpress.org/browser/wp-country-class-in-body-tag/),
consulte o [repositório SVN](https://plugins.svn.wordpress.org/wp-country-class-in-body-tag/)
ou assine o [registro de desenvolvimento](https://plugins.trac.wordpress.org/log/wp-country-class-in-body-tag/)
por [RSS](https://plugins.trac.wordpress.org/log/wp-country-class-in-body-tag/?limit=100&mode=stop_on_copy&format=rss).

## Registro de alterações

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

## Meta

 *  Versão **1.0.2**
 *  Última atualização **9 anos atrás**
 *  Instalações ativas **10+**
 *  Versão do WordPress ** 4.0.1 ou superior **
 *  Testado até **4.9.35**
 *  Versão do PHP ** 5.2.4 ou superior **
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/wp-country-class-in-body-tag/)
 * Tags
 * [body tag](https://br.wordpress.org/plugins/tags/body-tag/)[country names](https://br.wordpress.org/plugins/tags/country-names/)
   [developers](https://br.wordpress.org/plugins/tags/developers/)
 *  [Visualização avançada](https://br.wordpress.org/plugins/wp-country-class-in-body-tag/advanced/)

## Classificações

Ainda não foi enviada nenhuma avaliação.

[Sua avaliação](https://wordpress.org/support/plugin/wp-country-class-in-body-tag/reviews/#new-post)

[Ver todas avaliações](https://wordpress.org/support/plugin/wp-country-class-in-body-tag/reviews/)

## Colaboradores

 *   [ kashanshah ](https://profiles.wordpress.org/kashanshah/)

## Suporte

Tem algo a dizer? Precisa de ajuda?

 [Ver fórum de suporte](https://wordpress.org/support/plugin/wp-country-class-in-body-tag/)

## Doar

Gostaria de contribuir para o desenvolvimento deste plugin?

 [ Doe para este plugin ](http://kashanshah.ga/)