Sale Ends in:
SPRING SALE! 40% OFF!
TELL ME MORE >>
 

Setting up the Geolocation condition in Elementor and Gutenberg

With the Conditional Gutenberg Blocks option and the Elementor Integration, you can set a condition to blocks and elements so that they will be displayed only if the condition is met.

We’re working on ironing out all the kinks, but in the meantime, when using the geolocation condition, you will need to use country and state codes rather than choosing a name from a drop-down list.

Continent Level

Type-in letters as described below

Africa: AF
Antarctica: AN
Asia: AS
Europe: EU
North America: NA
South America: SA
Oceania: OC

Country Level

To target a Gutenberg Block or an Elementor Element at the country level, set up a geolocation condition and paste the country code in the “country-level” field.

City Level

The city name should be written in the If-So condition exactly as it is written in the result you’ll get after searching the city name in this link (including capital letters).

State Level

To target a Gutenberg Block or an Elementor Element at the state level, set up a geolocation condition and paste the state name at the “state-level” field. The name should start with a capital letter (Example: New York, Illinois, Texas).

For your convenience, we’ve added a table below with links to country and state codes:

Country nameCountry CodeA link to the names of the states
AndorraADhttps://en.wikipedia.org/wiki/ISO_3166-2:AD
United Arab EmiratesAEhttps://en.wikipedia.org/wiki/ISO_3166-2:AE
AfghanistanAFhttps://en.wikipedia.org/wiki/ISO_3166-2:AF
Antigua and BarbudaAGhttps://en.wikipedia.org/wiki/ISO_3166-2:AG
AnguillaAIhttps://en.wikipedia.org/wiki/ISO_3166-2:AI
AlbaniaALhttps://en.wikipedia.org/wiki/ISO_3166-2:AL
ArmeniaAMhttps://en.wikipedia.org/wiki/ISO_3166-2:AM
AngolaAOhttps://en.wikipedia.org/wiki/ISO_3166-2:AO
AntarcticaAQhttps://en.wikipedia.org/wiki/ISO_3166-2:AQ
ArgentinaARhttps://en.wikipedia.org/wiki/ISO_3166-2:AR
American SamoaAShttps://en.wikipedia.org/wiki/ISO_3166-2:AS
AustriaAThttps://en.wikipedia.org/wiki/ISO_3166-2:AT
AustraliaAUhttps://en.wikipedia.org/wiki/ISO_3166-2:AU
ArubaAWhttps://en.wikipedia.org/wiki/ISO_3166-2:AW
Åland IslandsAXhttps://en.wikipedia.org/wiki/ISO_3166-2:AX
AzerbaijanAZhttps://en.wikipedia.org/wiki/ISO_3166-2:AZ
Bosnia and HerzegovinaBAhttps://en.wikipedia.org/wiki/ISO_3166-2:BA
BarbadosBBhttps://en.wikipedia.org/wiki/ISO_3166-2:BB
BangladeshBDhttps://en.wikipedia.org/wiki/ISO_3166-2:BD
BelgiumBEhttps://en.wikipedia.org/wiki/ISO_3166-2:BE
Burkina FasoBFhttps://en.wikipedia.org/wiki/ISO_3166-2:BF
BulgariaBGhttps://en.wikipedia.org/wiki/ISO_3166-2:BG
BahrainBHhttps://en.wikipedia.org/wiki/ISO_3166-2:BH
BurundiBIhttps://en.wikipedia.org/wiki/ISO_3166-2:BI
BeninBJhttps://en.wikipedia.org/wiki/ISO_3166-2:BJ
Saint BarthélemyBLhttps://en.wikipedia.org/wiki/ISO_3166-2:BL
BermudaBMhttps://en.wikipedia.org/wiki/ISO_3166-2:BM
Brunei DarussalamBNhttps://en.wikipedia.org/wiki/ISO_3166-2:BN
Bolivia (Plurinational State of)BOhttps://en.wikipedia.org/wiki/ISO_3166-2:BO
Bonaire, Sint Eustatius and SabaBQhttps://en.wikipedia.org/wiki/ISO_3166-2:BQ
BrazilBRhttps://en.wikipedia.org/wiki/ISO_3166-2:BR
BahamasBShttps://en.wikipedia.org/wiki/ISO_3166-2:BS
BhutanBThttps://en.wikipedia.org/wiki/ISO_3166-2:BT
Bouvet IslandBVhttps://en.wikipedia.org/wiki/ISO_3166-2:BV
BotswanaBWhttps://en.wikipedia.org/wiki/ISO_3166-2:BW
BelarusBYhttps://en.wikipedia.org/wiki/ISO_3166-2:BY
BelizeBZhttps://en.wikipedia.org/wiki/ISO_3166-2:BZ
CanadaCAhttps://en.wikipedia.org/wiki/ISO_3166-2:CA
Cocos (Keeling) IslandsCChttps://en.wikipedia.org/wiki/ISO_3166-2:CC
Congo, Democratic Republic of theCDhttps://en.wikipedia.org/wiki/ISO_3166-2:CD
Central African RepublicCFhttps://en.wikipedia.org/wiki/ISO_3166-2:CF
CongoCGhttps://en.wikipedia.org/wiki/ISO_3166-2:CG
SwitzerlandCHhttps://en.wikipedia.org/wiki/ISO_3166-2:CH
Côte d’IvoireCIhttps://en.wikipedia.org/wiki/ISO_3166-2:CI
Cook IslandsCKhttps://en.wikipedia.org/wiki/ISO_3166-2:CK
ChileCLhttps://en.wikipedia.org/wiki/ISO_3166-2:CL
CameroonCMhttps://en.wikipedia.org/wiki/ISO_3166-2:CM
ChinaCNhttps://en.wikipedia.org/wiki/ISO_3166-2:CN
ColombiaCOhttps://en.wikipedia.org/wiki/ISO_3166-2:CO
Costa RicaCRhttps://en.wikipedia.org/wiki/ISO_3166-2:CR
CubaCUhttps://en.wikipedia.org/wiki/ISO_3166-2:CU
Cabo VerdeCVhttps://en.wikipedia.org/wiki/ISO_3166-2:CV
CuraçaoCWhttps://en.wikipedia.org/wiki/ISO_3166-2:CW
Christmas IslandCXhttps://en.wikipedia.org/wiki/ISO_3166-2:CX
CyprusCYhttps://en.wikipedia.org/wiki/ISO_3166-2:CY
CzechiaCZhttps://en.wikipedia.org/wiki/ISO_3166-2:CZ
GermanyDEhttps://en.wikipedia.org/wiki/ISO_3166-2:DE
DjiboutiDJhttps://en.wikipedia.org/wiki/ISO_3166-2:DJ
DenmarkDKhttps://en.wikipedia.org/wiki/ISO_3166-2:DK
DominicaDMhttps://en.wikipedia.org/wiki/ISO_3166-2:DM
Dominican RepublicDOhttps://en.wikipedia.org/wiki/ISO_3166-2:DO
AlgeriaDZhttps://en.wikipedia.org/wiki/ISO_3166-2:DZ
EcuadorEChttps://en.wikipedia.org/wiki/ISO_3166-2:EC
EstoniaEEhttps://en.wikipedia.org/wiki/ISO_3166-2:EE
EgyptEGhttps://en.wikipedia.org/wiki/ISO_3166-2:EG
Western SaharaEHhttps://en.wikipedia.org/wiki/ISO_3166-2:EH
EritreaERhttps://en.wikipedia.org/wiki/ISO_3166-2:ER
SpainEShttps://en.wikipedia.org/wiki/ISO_3166-2:ES
EthiopiaEThttps://en.wikipedia.org/wiki/ISO_3166-2:ET
FinlandFIhttps://en.wikipedia.org/wiki/ISO_3166-2:FI
FijiFJhttps://en.wikipedia.org/wiki/ISO_3166-2:FJ
Falkland Islands (Malvinas)FKhttps://en.wikipedia.org/wiki/ISO_3166-2:FK
Micronesia (Federated States of)FMhttps://en.wikipedia.org/wiki/ISO_3166-2:FM
Faroe IslandsFOhttps://en.wikipedia.org/wiki/ISO_3166-2:FO
FranceFRhttps://en.wikipedia.org/wiki/ISO_3166-2:FR
GabonGAhttps://en.wikipedia.org/wiki/ISO_3166-2:GA
United Kingdom of Great Britain and Northern IrelandGBhttps://en.wikipedia.org/wiki/ISO_3166-2:GB
GrenadaGDhttps://en.wikipedia.org/wiki/ISO_3166-2:GD
GeorgiaGEhttps://en.wikipedia.org/wiki/ISO_3166-2:GE
French GuianaGFhttps://en.wikipedia.org/wiki/ISO_3166-2:GF
GuernseyGGhttps://en.wikipedia.org/wiki/ISO_3166-2:GG
GhanaGHhttps://en.wikipedia.org/wiki/ISO_3166-2:GH
GibraltarGIhttps://en.wikipedia.org/wiki/ISO_3166-2:GI
GreenlandGLhttps://en.wikipedia.org/wiki/ISO_3166-2:GL
GambiaGMhttps://en.wikipedia.org/wiki/ISO_3166-2:GM
GuineaGNhttps://en.wikipedia.org/wiki/ISO_3166-2:GN
GuadeloupeGPhttps://en.wikipedia.org/wiki/ISO_3166-2:GP
Equatorial GuineaGQhttps://en.wikipedia.org/wiki/ISO_3166-2:GQ
GreeceGRhttps://en.wikipedia.org/wiki/ISO_3166-2:GR
South Georgia and the South Sandwich IslandsGShttps://en.wikipedia.org/wiki/ISO_3166-2:GS
GuatemalaGThttps://en.wikipedia.org/wiki/ISO_3166-2:GT
GuamGUhttps://en.wikipedia.org/wiki/ISO_3166-2:GU
Guinea-BissauGWhttps://en.wikipedia.org/wiki/ISO_3166-2:GW
GuyanaGYhttps://en.wikipedia.org/wiki/ISO_3166-2:GY
Hong KongHKhttps://en.wikipedia.org/wiki/ISO_3166-2:HK
Heard Island and McDonald IslandsHMhttps://en.wikipedia.org/wiki/ISO_3166-2:HM
HondurasHNhttps://en.wikipedia.org/wiki/ISO_3166-2:HN
CroatiaHRhttps://en.wikipedia.org/wiki/ISO_3166-2:HR
HaitiHThttps://en.wikipedia.org/wiki/ISO_3166-2:HT
HungaryHUhttps://en.wikipedia.org/wiki/ISO_3166-2:HU
IndonesiaIDhttps://en.wikipedia.org/wiki/ISO_3166-2:ID
IrelandIEhttps://en.wikipedia.org/wiki/ISO_3166-2:IE
IsraelILhttps://en.wikipedia.org/wiki/ISO_3166-2:IL
Isle of ManIMhttps://en.wikipedia.org/wiki/ISO_3166-2:IM
IndiaINhttps://en.wikipedia.org/wiki/ISO_3166-2:IN
British Indian Ocean TerritoryIOhttps://en.wikipedia.org/wiki/ISO_3166-2:IO
IraqIQhttps://en.wikipedia.org/wiki/ISO_3166-2:IQ
Iran (Islamic Republic of)IRhttps://en.wikipedia.org/wiki/ISO_3166-2:IR
IcelandIShttps://en.wikipedia.org/wiki/ISO_3166-2:IS
ItalyIThttps://en.wikipedia.org/wiki/ISO_3166-2:IT
JerseyJEhttps://en.wikipedia.org/wiki/ISO_3166-2:JE
JamaicaJMhttps://en.wikipedia.org/wiki/ISO_3166-2:JM
JordanJOhttps://en.wikipedia.org/wiki/ISO_3166-2:JO
JapanJPhttps://en.wikipedia.org/wiki/ISO_3166-2:JP
KenyaKEhttps://en.wikipedia.org/wiki/ISO_3166-2:KE
KyrgyzstanKGhttps://en.wikipedia.org/wiki/ISO_3166-2:KG
CambodiaKHhttps://en.wikipedia.org/wiki/ISO_3166-2:KH
KiribatiKIhttps://en.wikipedia.org/wiki/ISO_3166-2:KI
ComorosKMhttps://en.wikipedia.org/wiki/ISO_3166-2:KM
Saint Kitts and NevisKNhttps://en.wikipedia.org/wiki/ISO_3166-2:KN
Korea (Democratic People’s Republic of)KPhttps://en.wikipedia.org/wiki/ISO_3166-2:KP
Korea, Republic ofKRhttps://en.wikipedia.org/wiki/ISO_3166-2:KR
KuwaitKWhttps://en.wikipedia.org/wiki/ISO_3166-2:KW
Cayman IslandsKYhttps://en.wikipedia.org/wiki/ISO_3166-2:KY
KazakhstanKZhttps://en.wikipedia.org/wiki/ISO_3166-2:KZ
Lao People’s Democratic RepublicLAhttps://en.wikipedia.org/wiki/ISO_3166-2:LA
LebanonLBhttps://en.wikipedia.org/wiki/ISO_3166-2:LB
Saint LuciaLChttps://en.wikipedia.org/wiki/ISO_3166-2:LC
LiechtensteinLIhttps://en.wikipedia.org/wiki/ISO_3166-2:LI
Sri LankaLKhttps://en.wikipedia.org/wiki/ISO_3166-2:LK
LiberiaLRhttps://en.wikipedia.org/wiki/ISO_3166-2:LR
LesothoLShttps://en.wikipedia.org/wiki/ISO_3166-2:LS
LithuaniaLThttps://en.wikipedia.org/wiki/ISO_3166-2:LT
LuxembourgLUhttps://en.wikipedia.org/wiki/ISO_3166-2:LU
LatviaLVhttps://en.wikipedia.org/wiki/ISO_3166-2:LV
LibyaLYhttps://en.wikipedia.org/wiki/ISO_3166-2:LY
MoroccoMAhttps://en.wikipedia.org/wiki/ISO_3166-2:MA
MonacoMChttps://en.wikipedia.org/wiki/ISO_3166-2:MC
Moldova, Republic ofMDhttps://en.wikipedia.org/wiki/ISO_3166-2:MD
MontenegroMEhttps://en.wikipedia.org/wiki/ISO_3166-2:ME
Saint Martin (French part)MFhttps://en.wikipedia.org/wiki/ISO_3166-2:MF
MadagascarMGhttps://en.wikipedia.org/wiki/ISO_3166-2:MG
Marshall IslandsMHhttps://en.wikipedia.org/wiki/ISO_3166-2:MH
North MacedoniaMKhttps://en.wikipedia.org/wiki/ISO_3166-2:MK
MaliMLhttps://en.wikipedia.org/wiki/ISO_3166-2:ML
MyanmarMMhttps://en.wikipedia.org/wiki/ISO_3166-2:MM
MongoliaMNhttps://en.wikipedia.org/wiki/ISO_3166-2:MN
MacaoMOhttps://en.wikipedia.org/wiki/ISO_3166-2:MO
Northern Mariana IslandsMPhttps://en.wikipedia.org/wiki/ISO_3166-2:MP
MartiniqueMQhttps://en.wikipedia.org/wiki/ISO_3166-2:MQ
MauritaniaMRhttps://en.wikipedia.org/wiki/ISO_3166-2:MR
MontserratMShttps://en.wikipedia.org/wiki/ISO_3166-2:MS
MaltaMThttps://en.wikipedia.org/wiki/ISO_3166-2:MT
MauritiusMUhttps://en.wikipedia.org/wiki/ISO_3166-2:MU
MaldivesMVhttps://en.wikipedia.org/wiki/ISO_3166-2:MV
MalawiMWhttps://en.wikipedia.org/wiki/ISO_3166-2:MW
MexicoMXhttps://en.wikipedia.org/wiki/ISO_3166-2:MX
MalaysiaMYhttps://en.wikipedia.org/wiki/ISO_3166-2:MY
MozambiqueMZhttps://en.wikipedia.org/wiki/ISO_3166-2:MZ
NamibiaNAhttps://en.wikipedia.org/wiki/ISO_3166-2:NA
New CaledoniaNChttps://en.wikipedia.org/wiki/ISO_3166-2:NC
NigerNEhttps://en.wikipedia.org/wiki/ISO_3166-2:NE
Norfolk IslandNFhttps://en.wikipedia.org/wiki/ISO_3166-2:NF
NigeriaNGhttps://en.wikipedia.org/wiki/ISO_3166-2:NG
NicaraguaNIhttps://en.wikipedia.org/wiki/ISO_3166-2:NI
NetherlandsNLhttps://en.wikipedia.org/wiki/ISO_3166-2:NL
NorwayNOhttps://en.wikipedia.org/wiki/ISO_3166-2:NO
NepalNPhttps://en.wikipedia.org/wiki/ISO_3166-2:NP
NauruNRhttps://en.wikipedia.org/wiki/ISO_3166-2:NR
NiueNUhttps://en.wikipedia.org/wiki/ISO_3166-2:NU
New ZealandNZhttps://en.wikipedia.org/wiki/ISO_3166-2:NZ
OmanOMhttps://en.wikipedia.org/wiki/ISO_3166-2:OM
PanamaPAhttps://en.wikipedia.org/wiki/ISO_3166-2:PA
PeruPEhttps://en.wikipedia.org/wiki/ISO_3166-2:PE
French PolynesiaPFhttps://en.wikipedia.org/wiki/ISO_3166-2:PF
Papua New GuineaPGhttps://en.wikipedia.org/wiki/ISO_3166-2:PG
PhilippinesPHhttps://en.wikipedia.org/wiki/ISO_3166-2:PH
PakistanPKhttps://en.wikipedia.org/wiki/ISO_3166-2:PK
PolandPLhttps://en.wikipedia.org/wiki/ISO_3166-2:PL
Saint Pierre and MiquelonPMhttps://en.wikipedia.org/wiki/ISO_3166-2:PM
PitcairnPNhttps://en.wikipedia.org/wiki/ISO_3166-2:PN
Puerto RicoPRhttps://en.wikipedia.org/wiki/ISO_3166-2:PR
Palestine, State ofPShttps://en.wikipedia.org/wiki/ISO_3166-2:PS
PortugalPThttps://en.wikipedia.org/wiki/ISO_3166-2:PT
PalauPWhttps://en.wikipedia.org/wiki/ISO_3166-2:PW
ParaguayPYhttps://en.wikipedia.org/wiki/ISO_3166-2:PY
QatarQAhttps://en.wikipedia.org/wiki/ISO_3166-2:QA
RéunionREhttps://en.wikipedia.org/wiki/ISO_3166-2:RE
RomaniaROhttps://en.wikipedia.org/wiki/ISO_3166-2:RO
SerbiaRShttps://en.wikipedia.org/wiki/ISO_3166-2:RS
Russian FederationRUhttps://en.wikipedia.org/wiki/ISO_3166-2:RU
RwandaRWhttps://en.wikipedia.org/wiki/ISO_3166-2:RW
Saudi ArabiaSAhttps://en.wikipedia.org/wiki/ISO_3166-2:SA
Solomon IslandsSBhttps://en.wikipedia.org/wiki/ISO_3166-2:SB
SeychellesSChttps://en.wikipedia.org/wiki/ISO_3166-2:SC
SudanSDhttps://en.wikipedia.org/wiki/ISO_3166-2:SD
SwedenSEhttps://en.wikipedia.org/wiki/ISO_3166-2:SE
SingaporeSGhttps://en.wikipedia.org/wiki/ISO_3166-2:SG
Saint Helena, Ascension and Tristan da CunhaSHhttps://en.wikipedia.org/wiki/ISO_3166-2:SH
SloveniaSIhttps://en.wikipedia.org/wiki/ISO_3166-2:SI
Svalbard and Jan MayenSJhttps://en.wikipedia.org/wiki/ISO_3166-2:SJ
SlovakiaSKhttps://en.wikipedia.org/wiki/ISO_3166-2:SK
Sierra LeoneSLhttps://en.wikipedia.org/wiki/ISO_3166-2:SL
San MarinoSMhttps://en.wikipedia.org/wiki/ISO_3166-2:SM
SenegalSNhttps://en.wikipedia.org/wiki/ISO_3166-2:SN
SomaliaSOhttps://en.wikipedia.org/wiki/ISO_3166-2:SO
SurinameSRhttps://en.wikipedia.org/wiki/ISO_3166-2:SR
South SudanSShttps://en.wikipedia.org/wiki/ISO_3166-2:SS
Sao Tome and PrincipeSThttps://en.wikipedia.org/wiki/ISO_3166-2:ST
El SalvadorSVhttps://en.wikipedia.org/wiki/ISO_3166-2:SV
Sint Maarten (Dutch part)SXhttps://en.wikipedia.org/wiki/ISO_3166-2:SX
Syrian Arab RepublicSYhttps://en.wikipedia.org/wiki/ISO_3166-2:SY
EswatiniSZhttps://en.wikipedia.org/wiki/ISO_3166-2:SZ
Turks and Caicos IslandsTChttps://en.wikipedia.org/wiki/ISO_3166-2:TC
ChadTDhttps://en.wikipedia.org/wiki/ISO_3166-2:TD
French Southern TerritoriesTFhttps://en.wikipedia.org/wiki/ISO_3166-2:TF
TogoTGhttps://en.wikipedia.org/wiki/ISO_3166-2:TG
ThailandTHhttps://en.wikipedia.org/wiki/ISO_3166-2:TH
TajikistanTJhttps://en.wikipedia.org/wiki/ISO_3166-2:TJ
TokelauTKhttps://en.wikipedia.org/wiki/ISO_3166-2:TK
Timor-LesteTLhttps://en.wikipedia.org/wiki/ISO_3166-2:TL
TurkmenistanTMhttps://en.wikipedia.org/wiki/ISO_3166-2:TM
TunisiaTNhttps://en.wikipedia.org/wiki/ISO_3166-2:TN
TongaTOhttps://en.wikipedia.org/wiki/ISO_3166-2:TO
TurkeyTRhttps://en.wikipedia.org/wiki/ISO_3166-2:TR
Trinidad and TobagoTThttps://en.wikipedia.org/wiki/ISO_3166-2:TT
TuvaluTVhttps://en.wikipedia.org/wiki/ISO_3166-2:TV
Taiwan, Province of ChinaTWhttps://en.wikipedia.org/wiki/ISO_3166-2:TW
Tanzania, United Republic ofTZhttps://en.wikipedia.org/wiki/ISO_3166-2:TZ
UkraineUAhttps://en.wikipedia.org/wiki/ISO_3166-2:UA
UgandaUGhttps://en.wikipedia.org/wiki/ISO_3166-2:UG
United States Minor Outlying IslandsUMhttps://en.wikipedia.org/wiki/ISO_3166-2:UM
United States of AmericaUShttps://en.wikipedia.org/wiki/ISO_3166-2:US
UruguayUYhttps://en.wikipedia.org/wiki/ISO_3166-2:UY
UzbekistanUZhttps://en.wikipedia.org/wiki/ISO_3166-2:UZ
Holy SeeVAhttps://en.wikipedia.org/wiki/ISO_3166-2:VA
Saint Vincent and the GrenadinesVChttps://en.wikipedia.org/wiki/ISO_3166-2:VC
Venezuela (Bolivarian Republic of)VEhttps://en.wikipedia.org/wiki/ISO_3166-2:VE
Virgin Islands (British)VGhttps://en.wikipedia.org/wiki/ISO_3166-2:VG
Virgin Islands (U.S.)VIhttps://en.wikipedia.org/wiki/ISO_3166-2:VI
Viet NamVNhttps://en.wikipedia.org/wiki/ISO_3166-2:VN
VanuatuVUhttps://en.wikipedia.org/wiki/ISO_3166-2:VU
Wallis and FutunaWFhttps://en.wikipedia.org/wiki/ISO_3166-2:WF
SamoaWShttps://en.wikipedia.org/wiki/ISO_3166-2:WS
YemenYEhttps://en.wikipedia.org/wiki/ISO_3166-2:YE
MayotteYThttps://en.wikipedia.org/wiki/ISO_3166-2:YT
South AfricaZAhttps://en.wikipedia.org/wiki/ISO_3166-2:ZA
ZambiaZMhttps://en.wikipedia.org/wiki/ISO_3166-2:ZM
ZimbabweZWhttps://en.wikipedia.org/wiki/ISO_3166-2:ZW

Continent Level

Type-in letters as described below

Africa: AF
Antarctica: AN
Asia: AS
Europe: EU
North America: NA
South America: SA
Oceania: OC