How to Add the Location Switcher to Menus and Widgets?
Location Manager comes with a Location Switcher that can be added to frontend menus to help users switch locations.
You need to have the Location Manager extension installed and activated to access these settings.
Adding Location Switcher to Menu
Basically, Location Switcher implements the "change current location" feature on the frontend.
- 1
- Navigate to Appearance > Menus and select the menu that you wish to edit.
- 2
- Locate GeoDirectory Endpoints in menu options. In GeoDirectory Endpoints, find Location Switcher. Check the Change Location box and click Add to Menu.
- 3
- Save the menu.
- 4
- The new menu with the Location Switcher should then be visible on the frontend.
If GeoDirectory Endpoints option is not visible, use Screen Options in top left to select it.
Any new cities that are created will automatically be available in the Location Switcher thereafter.
Adding Location Switcher to Widgets
Location Manager also comes with a Location Switcher widget that can be added to any widget area of your theme, such as the sidebar or footer.
- 1
-
Navigate to
Appearance > Widgets.
- 2
- Locate the GD > Location Switcher widget in the widgets' list.
- 3
-
Simply drag and drop the wideget to the preferred location, or click on it and select the location.