This plugin detects your location and makes certain classes available to you which you can apply to the div elements or use shortcodes in your theme to display the user's current locality, city, state, country and address.
Use :
1- Class name 'ihs-locality' for locality
2- Class name 'ihs-city' for city
3- Class name 'ihs-state' for state
4- Class name 'ihs-country' for country
5- Class name 'ihs-address' for address
You can also add the below shortcodes in your posts or pages content from WordPress Dashboard for locality, city, state, country and address respectively:
1- [ihs_geo_locality] for locality
2- [ihs_geo_city] for city
3- [ihs_geo_state] for state
4- [ihs_geo_country] for country
5- [ihs_geo_address] for address
This section describes how to install the plugin and get it working.
- Upload the plugin files to the
/wp-content/plugins/plugin-name
directory, or install the plugin through the WordPress plugins screen directly.
- Activate the plugin through the 'Plugins' screen in WordPress
- Add the following classes to the div elements in your theme to display the user's current locality, city, state, country and address respectively.
a- Class name 'ihs-locality' for locality
b- Class name 'ihs-city' for city
c- Class name 'ihs-state' for state
d- Class name 'ihs-country' for country
e- Class name 'ihs-address' for address
You can also add the below shortcodes in your posts or pages content from WordPress Dashboard for locality, city, state, country and address respectively:
a- [ihs_geo_locality] for locality
b- [ihs_geo_city] for city
c- [ihs_geo_state] for state
d- [ihs_geo_country] for country
e- [ihs_geo_address] for address
- You can get locationObjResult obj available inside request.done() in main.js which you can use to access the location data.