Always test before going live! Make sure images swap correctly for different locations.

Using Test Location

The Test Location feature lets you override real location detection. You can preview what visitors from any city will see.

Method 1: Admin Bar (Quick)

The fastest way to switch test locations:
1

Look for Localizer in admin bar

When logged into WordPress, you’ll see “Localizer” in the top admin bar
2

Click to open dropdown

Shows your current test location (if set)Admin bar dropdown
3

Change test location

Click “Change Test Location…” to set a new cityOr click “Use Real Location” to disable testing

Method 2: Settings Page

For more control:
1

Go to Settings → Localizer

Open the Localizer settings page
2

Find Test Location section

Enter:
  • City: City name (e.g., “Las Vegas”)
  • State: 2-letter code (e.g., “NV”)
Test location fields
3

Save Settings

Click Save SettingsThe admin bar will now show your test location

Testing Checklist

Before going live, test these scenarios:
1

Test a city with localized images

Set test location to a city you’ve generated images for.Verify: Images swap to the localized versions
2

Test a city without localized images

Set test location to a city you haven’t targeted.Verify: Original images display (fallback works)
3

Test with real location

Clear test location (use real IP).Verify: Your actual location is detected correctly
4

Test on mobile

View your site on a phone with test location set.Verify: Mobile images swap correctly

Admin Bar Quick Actions

ActionWhat it Does
Test Location: [City]Shows current test city (green = active)
Change Test LocationOpens prompt to enter new city
Use Real LocationDisables test mode, uses real IP
Rescan Media LibraryRe-syncs WordPress images
Settings →Opens Localizer settings page

Important Reminders

Remember to disable test location before going live!If you leave a test location set, ALL visitors will see that city’s images - not their own location.

How to Disable Test Location

Either:
  • Click LocalizerUse Real Location in admin bar
  • Or clear both City and State fields in Settings → Localizer

Verifying Images Are Working

Check the Source

  1. Right-click on an image on your page
  2. Click “Inspect” (or “Inspect Element”)
  3. Look at the src attribute
If working: The src URL will be different from your original WordPress media URL, and you’ll see a data-localizer-original attribute storing the original URL. If not working: The src shows your original WordPress media URL and there’s no data-localizer-original attribute.

Check Console for Errors

  1. Open browser Developer Tools (F12)
  2. Go to Console tab
  3. Look for Localizer messages or errors

Common Testing Issues

  1. Make sure you clicked Save Settings
  2. Clear your browser cache
  3. Try a hard refresh (Ctrl+Shift+R)
  1. Verify you have localized variants for that city
  2. Check base_name matches (see image swapping guide)
  3. Test the connection in Settings → Localizer
  1. Make sure you’re logged into WordPress
  2. Verify plugin is activated
  3. Clear any caching plugins

Next Steps

Once testing is complete: