[WordPress] 外掛分享: WP Country Class In Body Tag

首頁外掛目錄 › WP Country Class In Body Tag
10+
安裝啟用
尚無評分
2890 天前
最後更新
問題解決
WordPress 4.0.1+ PHP 5.2.4+ v1.0.2 上架:2018-05-13

內容簡介

此外掛的目的是在網頁的 body 標籤上加入來訪者的國家 class,以便在網站上顯示基於國家的內容!開發人員可通過使用國家 class,在 css/js 中顯示/隱藏/修改內容。它使用第三方 API (GeoPlugin.net) 來實現此目的。它會將用戶的 IP 地址發送給 GeoPlugin.net,即 http://www.geoplugin.net/json.gp?ip=XXX.XXX.XX.XXX,以此回應有關該 IP 地址的地理位置訊息,然後添加國家代碼作為 body 標籤中的 classname。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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 (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.

延伸相關外掛

文章
Filter
Mastodon