Search Widget

Search Widget

The Search Widget provides users with the option to search for nearby store locations from anywhere in your theme.

After the user submits the search form, they will be taken to the store locator page where the results are shown on the map.


Once the Search Widget is activated, you can set the widget title, specify search labels, and enable the option to show a category dropdown that users can use to filter the search results.

Search Widget Example
Search Widget Example
Version 1.2.0 - December 15, 2018
  • Added: Support for a [wpsl_widget] shortcode.
  • Added: Included an option on the widget config page that optionally makes a locate me icon show up next to the submit button.
  • Added: A template system that allows you to load a custom widget template from another folder.
  • Added: A check for an empty input field when the widget is submitted.
  • Added: Placed a wpsl-widget-submit ID on the widget submit button.
  • Changed: If a site does not use HTTPS, then a notice is shown below the Attempt to auto-locate the user? option saying HTTPS is required to use that option.
  • Changed: Replaced the usage of is_user_loggedin with current_user_can before a warning is shown.
  • Changed: Increased the default geolocation timeout so it now matches with the value used in the store locator itself.
  • Changed: Updated the language files.
Version 1.1.1 - October 31, 2017
  • Fixed: Compatibility issue with PHP 7.1+.
Version 1.1.0 - May 16, 2017
  • Added: The option to enable autocomplete.
  • Added: The option to auto-locate the users location.
  • Added: A wpsl_geolocation_filter_pattern filter that allows you to modify the shown location details in the search input field.
  • Changed: The Any text used in the category dropdown now automatically uses the value set in the labels section on the WPSL settings page.
Version 1.0.1 - March 7, 2016
  • Fixed: Problem with the loading of the translation files.