[cfgeo_gps]

[cfgeo_gps]GPS is enabled[/cfgeo_gps]

Use this shortcode to display or hide a message when the visitor’s device has GPS enabled.
By default, GPS functionality is not built into Geo Controller, but you can enable it using the official
FREE GPS Addon.

Parameters

  • default – (accepts: text) – Message displayed when GPS is not available or not enabled. Optional.
  • cache – (no value) – Enables AJAX-based caching to fetch GPS data. Automatically added if caching is enabled in the settings.

Return

Displays the inner content only if GPS is enabled on the visitor’s device. If not, returns the default message (if set).

Examples

Display a message if GPS is enabled:

[cfgeo_gps]GPS is enabled[/cfgeo_gps]

Display different message if GPS is not enabled:

[cfgeo_gps default="GPS is not enabled"]GPS is enabled[/cfgeo_gps]

Was this page helpful?