{"id":805,"date":"2025-03-24T14:27:43","date_gmt":"2025-03-24T14:27:43","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-to-add-the-location-switcher-to-menus-and-widgets\/"},"modified":"2025-04-03T15:24:04","modified_gmt":"2025-04-03T14:24:04","slug":"how-to-add-the-location-switcher-to-menus-and-widgets","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/location-manager\/how-to-add-the-location-switcher-to-menus-and-widgets\/","title":{"rendered":"How to Add the Location Switcher to Menus and Widgets?"},"content":{"rendered":"<p>\n\t Location Manager comes with a <strong>Location Switcher<\/strong> that can be added to frontend menus to help users switch locations.&nbsp;<\/p>\n<section class=\"alert alert-warning\">\n\t You need to have the <a target=\"_blank\" href=\"https:\/\/wpgeodirectory.com\/downloads\/location-manager\/\">Location Manager<\/a> extension installed and activated to access these settings.<\/section>\n<h2>Adding Location Switcher to Menu<\/h2>\n<p>\n\t Basically, Location Switcher implements the <strong>&#8220;change current location&#8221;<\/strong> feature on the frontend.&nbsp;<\/p>\n<dl>\n<dt>\n\t1\n\t<\/dt>\n<dd>\n\tNavigate to <strong>Appearance &gt; Menus <\/strong>and select the menu that you wish to edit.&nbsp;\n\t<\/dd>\n<p>\t<img width=\"154\" height=\"504\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-J1prjVdVL3.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-J1prjVdVL3.png 154w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-J1prjVdVL3-92x300.png 92w\" sizes=\"auto, (max-width: 154px) 100vw, 154px\" \/><\/p>\n<dt>\n\t2\n\t<\/dt>\n<dd>\n\tLocate <strong>GeoDirectory Endpoints <\/strong>in menu options. In <strong>GeoDirectory Endpoints, <\/strong>find <strong>Location Switcher. <\/strong>Check the <strong>Change Location <\/strong>box and click <strong>Add to Menu. <\/strong> <\/dd>\n<p>\t<img width=\"291\" height=\"595\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-8ENtEpGPM1.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-8ENtEpGPM1.png 291w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-8ENtEpGPM1-147x300.png 147w\" sizes=\"auto, (max-width: 291px) 100vw, 291px\" \/><\/p>\n<section class=\"alert alert-info\">\n<p>\t\t If <strong>GeoDirectory Endpoints <\/strong>option is not visible, use <strong>Screen Options <\/strong>in top left to select it.&nbsp;<br \/>\n\t<\/section>\n<dt>\n\t3\n\t<\/dt>\n<dd>\n\tSave the menu.\n\t<\/dd>\n<p>\t<img width=\"920\" height=\"411\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-oThQcXuzX3-1024x457.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-oThQcXuzX3-1024x457.png 1024w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-oThQcXuzX3-300x134.png 300w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-oThQcXuzX3-768x343.png 768w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-oThQcXuzX3.png 1173w\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" \/><\/p>\n<dt>\n\t4\n\t<\/dt>\n<dd>\n\tThe new menu with the Location Switcher should then be visible on the frontend.&nbsp;\n\t<\/dd>\n<\/dl>\n<p>\n\t <img width=\"920\" height=\"364\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-WQ5MhSod2k-1024x405.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-WQ5MhSod2k-1024x405.png 1024w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-WQ5MhSod2k-300x119.png 300w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-WQ5MhSod2k-768x304.png 768w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-WQ5MhSod2k.png 1348w\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" \/><\/p>\n<p>\n\t Any new cities that are created will automatically be available in the Location Switcher thereafter.&nbsp;<\/p>\n<h2>Adding Location Switcher to Widgets<\/h2>\n<p>\n\t Location Manager also comes with a <strong>Location Switcher widget<\/strong> that can be added to any widget area of your theme, such as the sidebar or footer.&nbsp;<\/p>\n<p>\n\t <img width=\"635\" height=\"474\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-prs9tokPLY.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-prs9tokPLY.png 635w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-prs9tokPLY-300x224.png 300w\" sizes=\"auto, (max-width: 635px) 100vw, 635px\" \/><\/p>\n<dl>\n<dt>\n\t1\n\t<\/dt>\n<dd>\n\tNavigate to <strong>Appearance &gt; Widgets. <br \/>\n\t <\/strong> <\/dd>\n<dt>\n\t2\n\t<\/dt>\n<dd>\n\tLocate the <strong>GD &gt; Location Switcher widget <\/strong>in the widgets&#8217; list.&nbsp;\n\t<\/dd>\n<dt>\n\t3\n\t<\/dt>\n<dd>\n\tSimply drag and drop the wideget to the preferred location, or click on it and select the location.<br \/>\n\t<br \/> <strong><\/strong> <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Location Manager comes with a Location Switcher that can be added to frontend menus to help users switch locations.&nbsp; 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 &#8220;change current location&#8221; feature on the frontend.&nbsp; 1 Navigate to Appearance [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[541,584,640,641,642],"article\/categories":[213,425],"class_list":["post-805","gd_place","type-gd_place","status-publish","hentry","gd_place_tags-geodirectory-addons","gd_place_tags-location-manager","gd_place_tags-location-switcher","gd_place_tags-navigation","gd_place_tags-adding-a-menu","gd_placecategory-extensions-features","gd_placecategory-location-manager"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=805"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/805\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=805"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=805"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}