[geoip_detect2_show_if country="DE,FR,GB"]
Products list
[/geoip_detect2_show_if]
works. Also, you can match the custom property:
[geoip_detect2_show_if property="country.isInEuropeanUnion" property_value="1"]Products list for EU[/geoip_detect2_show_if]
Else is not possible. However, you can use the contrary:
[geoip_detect2_show_if property="country.isInEuropeanUnion" not_property_value="1"]Products list for EU[/geoip_detect2_show_if]
Hey, Thanks for the answer.
hide_if worked for me as well, awesome plugin!
[geoip_detect2_hide_if country="DE,FR,GB"]
Products list
[/geoip_detect2_hide_if]
Then all other countries that not from the list will get this content.
I will try to use ‘property’ instead of listing. thanks
Hiya!
So I have a similar issue. It always shows EUR Zone, eventhough I am in India at the moment.
I am using Siteground as a Host, Siteground Cache Optimizer Plug In, the Page with the Shortcodes is excluded from caching and am using the below codes to create a button that links to different pages based on location.
[geoip_detect2_show_if country=”IN”][et_pb_button admin_label=”Button” button_url=”LINK” url_new_window=”off” button_text=”BUTTON TEXT” button_alignment=”left” background_layout=”light”][/geoip_detect2_show_if]
[geoip_detect2_show_if country=”US,MX,CA”][et_pb_button admin_label=”Button” button_url=”LINK2″ url_new_window=”off” button_text=”BUTTON TEXT” button_alignment=”left” background_layout=”light”][/geoip_detect2_show_if]
[geoip_detect2_show_if country=”GB”][et_pb_button admin_label=”Button” button_url=”LINK3″ url_new_window=”off” button_text=”BUTTON TEXT” button_alignment=”left” background_layout=”light”][/geoip_detect2_show_if]
[geoip_detect2_show_if country=”AU”][et_pb_button admin_label=”Button” button_url=”LINK4″ url_new_window=”off” button_text=”BUTTON TEXT” button_alignment=”left” background_layout=”light”][/geoip_detect2_show_if]
[geoip_detect2_hide_if country=”IN,US,GB, MX,CA,AU”][et_pb_button admin_label=”Button” button_url=”LINK5″ url_new_window=”off” button_text=”BUTTON TEXT” button_alignment=”left” background_layout=”light”][/geoip_detect2_hide_if]
Can you help?
Thanks!
Iris
-
This reply was modified 5 years, 10 months ago by
iriszajac.
-
This reply was modified 5 years, 10 months ago by
iriszajac.