DOCUMENTATION

Geo Content Control Documentation

A step-by-step guide to installing, configuring, and using Geo Content Control to show or hide WordPress content based on a visitor's country.

01
OVERVIEW

What This Plugin Does

Geo Content Control lets you show or hide any part of a page based on where your visitor is browsing from.

In plain terms: the same page, at the same URL, can look different depending on which country someone is visiting from — without having to build separate pages, separate sites, or manually redirect anyone.

You control this by adding a small CSS class or shortcode to whatever you want to target. No coding is required for everyday use.

Why this is useful

Businesses rarely operate identically everywhere. What's legal, in stock, priced correctly, or even relevant can vary by country — but most websites are built as if every visitor is the same person.

Geo Content Control provides a way to keep one WordPress page while changing selected pieces of content for different countries.

Real-life scenarios where this gets used

E-COMMERCE / ONLINE STORES
  • Show a "Buy Now" or "Add to Cart" button only in countries where you actually ship or sell.
  • Display a "Coming Soon to Your Region" message instead of a checkout option for countries you do not yet serve.
  • Show different pricing blocks per region without maintaining separate pages.
Example: A supplement brand can place a purchase button inside gcc-show-us so the button is shown only to visitors detected in the United States.
LEGAL, COMPLIANCE & REGULATED INDUSTRIES
  • Hide a promotion, claim, or product where different regional requirements apply.
  • Show region-specific legal disclaimers, notices, or terms.
Example: A financial services company can use gcc-hide-gb on a section intended to be hidden from visitors detected in the United Kingdom.
SAAS & SERVICE BUSINESSES
  • Show local-currency pricing and country-specific case studies.
  • Display regional support contact information, phone numbers, or office hours.
Example: A B2B software company can show a UK-specific contact block with gcc-show-gb.
MARKETING & PROMOTIONS
  • Run country-specific discounts, giveaways, or seasonal promotions.
  • Show local testimonials, pricing, or region-appropriate marketing content.
Example: A promotion can be shown only to US and Canadian visitors using gcc-show-us-ca.
EVENTS, FRANCHISES & MULTI-LOCATION BUSINESSES
  • Show the nearest physical location.
  • Display regional event dates or registration links.
  • Present location-specific franchise information.
PUBLISHERS, MEDIA & MEMBERSHIP SITES
  • Show region-specific subscription offers.
  • Display territory-specific licensing notices.
  • Hide content in regions where distribution rights differ.
NONPROFITS & NGOS
  • Show country-specific donation forms.
  • Display local currencies or tax-deductibility notices.
The common thread

One page, many audiences, no duplicate content to maintain. Build the page once and tag the parts that differ. Geo Content Control handles the country-based visibility decision in the visitor's browser.

02
GETTING STARTED

Installing the Plugin

Geo Content Control installs like any standard WordPress plugin. You can upload the plugin directly from your WordPress dashboard.

01

Open the plugin installer

In your WordPress dashboard, go to:

Plugins → Add New → Upload Plugin
02

Upload the plugin

Click Choose File, select the plugin ZIP file, then click Install Now.

geo-content-control-*.zip
03

Activate the plugin

Once WordPress finishes installing the plugin, click Activate Plugin.

✓
Installation complete

Geo Content Control is now ready to use. The basic targeting workflow works with the default geolocation provider, so you can start creating country-specific content without additional configuration.

03
CONFIGURATION

Checking Your Settings

Go to Settings → Geo Content Control in your WordPress dashboard.

You'll see the following configuration options:

Setting What it does Default
Geolocation Provider Controls which service is used to detect a visitor's country. ipapi.co
API Key Used when switching to the ipinfo.io provider, subject to that provider's current requirements. Blank
Cache Duration Controls how long a visitor's detected country is remembered before another lookup. 12 hours
When Country Cannot Be Determined Controls whether targeted content is shown or hidden when detection fails. Show
Editing Experience Controls whether logged-in editors can see targeted content regardless of their own location. On

Most sites can leave these settings at their defaults. Review them when you first install the plugin, then click Save Settings

04
OPTIONAL SETUP

Getting an IPinfo API Key

Geo Content Control can use IPinfo as its geolocation provider. If you choose IPinfo in the plugin settings, you will need an IPinfo API token.

IPinfo offers a free Lite plan for country-level geolocation. You can create an account and obtain an API token from the IPinfo dashboard.

i
IPinfo is optional

You do not need an IPinfo account to use the default geolocation provider. Only follow these steps if you want Geo Content Control to use IPinfo.

01

Create an IPinfo account

Go to IPinfo and create a free account.

Create an IPinfo account
02

Open your IPinfo dashboard

After signing in, open your IPinfo dashboard and locate your API token.

Open IPinfo Dashboard
03

Copy your API token

Find the API token associated with your account and copy it. You will enter this token in Geo Content Control's settings.

IPinfo Dashboard → API Token
04

Select IPinfo as your provider

Return to your WordPress dashboard and open:

Settings → Geo Content Control

Under Geolocation Provider, select IPinfo.

05

Enter your API token

Paste your IPinfo token into the plugin's API Key field.

API Key → Your IPinfo token
06

Save your settings

Save the Geo Content Control settings. The plugin can now use IPinfo to determine the visitor's country.

!
Keep your API token private

Your IPinfo token is associated with your account. Do not publish it in screenshots, documentation, source code, or public repositories.

04
CORE WORKFLOW

How to Target Content

The CSS-class method is the primary way to target content, especially when working with page builders.

Add one of the following classes to the element you want to control:

SHOW
gcc-show-XX

Only visible to visitors detected in country XX.

HIDE
gcc-hide-XX

Hidden from visitors detected in country XX, shown to everyone else.

Examples

CSS classes
gcc-show-us
gcc-show-us-ca-gb
gcc-hide-us
gcc-hide-us-ca
gcc-show-us US visitors only
gcc-show-us-ca-gb US, Canada, or UK visitors
gcc-hide-us Everyone except US visitors
gcc-hide-us-ca Everyone except US and Canadian visitors

Common two-letter country codes

Country Code Country Code
United States US Philippines PH
Canada CA Australia AU
United Kingdom GB India IN
Germany DE Japan JP
Singapore SG New Zealand NZ

Any valid two-letter ISO country code can be used. The table above is only a shortlist of common examples.

05
WORDPRESS EDITORS

Using It With Page Builders

Geo Content Control uses the CSS class fields already provided by WordPress and supported page builders. No plugin-specific widget is required.

Beaver Builder
  1. Click the row, column, or module.
  2. Open the Advanced tab.
  3. Find Class Name.
  4. Enter your class, such as gcc-show-us.
  5. Save or publish the page.
Elementor
  1. Select the section, column, or widget.
  2. Open the Advanced panel.
  3. Find CSS Classes.
  4. Enter your class.
  5. Update or publish the page.
Divi
  1. Open the module or row settings.
  2. Open the Advanced tab.
  3. Find CSS ID & Classes → CSS Class.
  4. Enter your class.
  5. Save the page.
WPBakery / Visual Composer
  1. Edit the row or element.
  2. Look for Extra Class Name.
  3. Enter your Geo Content Control class.
  4. Save or update the page.
Gutenberg
  1. Select the block.
  2. Open the block settings panel.
  3. Open Advanced.
  4. Find Additional CSS Class(es).
  5. Enter your class.
Plain HTML / Custom HTML block
<h2 class="gcc-show-us">
	This only shows to US visitors.
</h2>

In every case, the workflow is the same: find the CSS class field your editor already provides and enter the gcc-show-* or gcc-hide-* class.

06
HOW IT WORKS

Why It's Designed This Way

Detection happens in the visitor's browser

Most WordPress sites use some form of caching to load faster — whether through a caching plugin, hosting infrastructure, or a CDN such as Cloudflare.

If country-based visibility were decided while WordPress generated the page on the server, that decision could become part of the cached HTML and potentially be served to other visitors.

Geo Content Control instead performs the country-based visibility decision in the visitor's browser.

01 Page loads The same page can be delivered to the visitor.
02 Country is determined The browser obtains the visitor's detected country.
03 Content is evaluated Targeted elements are shown or hidden for that visitor.

Why content is hidden before it is revealed

Elements with gcc-show-* classes can remain in the HTML while being hidden until the detection process confirms that they should appear.

This helps avoid a brief flash where content intended for another country appears before being hidden.

Important: this is not access control.

Targeted content remains part of the page's HTML. A technically knowledgeable visitor may be able to inspect the page source or browser tools and find content that is hidden from the visible page.

Use Geo Content Control for on-page personalization, regional presentation, and marketing — not for protecting sensitive, paid, private, or authenticated content.

Editors always see everything

When you're logged into WordPress with the appropriate editing permissions, Geo Content Control can keep targeted content visible while you work on the page.

This prevents content from disappearing from your editing experience simply because your own detected country doesn't match the targeting rule.

Testing reminder

To see the page as a real visitor from a specific country, log out of WordPress or use a private/incognito browser window. Logged-in editors are intentionally shown the editor view with targeted content visible.

07
ALTERNATIVE SYNTAX

Using Shortcodes

If you're writing directly in a paragraph, widget, or another location where a CSS class field isn't easily available, you can use shortcodes instead.

Show content
[gcc_show country="US"]
This text only appears for US visitors.
[/gcc_show]
Hide content
[gcc_hide country="US"]
This text is hidden from US visitors.
[/gcc_hide]
Conditional content
[gcc_if country="US"]
US visitors see this message.
[gcc_else]
Everyone else sees this message instead.
[/gcc_if]

Multiple countries can be supplied as a comma-separated list: country="US,CA,GB".

08
VERIFICATION

How to Test Your Setup

01
Test as an editor

While logged into WordPress with the appropriate editing permissions, you'll see geo-targeted content regardless of your actual location.

This confirms that the content exists and is tagged correctly, but it is not a real visitor test.
02
Test as a real visitor

Open a private/incognito browser window or log out of WordPress, then visit the page.

The visible content now reflects the detected country of that browsing session.
03
Simulate another country

Use a VPN or another method that provides a different detected country, then reload the page in a private browser session.

04
Troubleshoot unexpected results

If the targeting does not behave as expected, check the browser console, network requests, and caching layers.

These troubleshooting steps may require assistance from your site administrator or developer.
09
CHEAT SHEET

Quick Reference

SHOW gcc-show-us

Show only to US visitors.

MULTIPLE gcc-show-us-ca-gb

Show only to US, Canada, or UK visitors.

HIDE gcc-hide-us

Hide from US visitors and show to everyone else.

SHORTCODE [gcc_show country="US"]...[/gcc_show]

Show shortcode content to US visitors.

CONDITIONAL [gcc_if country="US"]...[gcc_else]...[/gcc_if]

Show different content based on the detected country.

Remember

To see what a real visitor sees, log out of WordPress or use a private/incognito browser window. While logged in as an editor, targeted content is intentionally visible.