{"id":564,"date":"2023-11-15T08:46:12","date_gmt":"2023-11-15T08:46:12","guid":{"rendered":"https:\/\/locationweather.io\/docs\/?post_type=docs&#038;p=564"},"modified":"2023-11-16T05:11:30","modified_gmt":"2023-11-16T05:11:30","slug":"how-to-define-a-custom-city-name-for-my-weather-view","status":"publish","type":"docs","link":"https:\/\/locationweather.io\/docs\/how-to-define-a-custom-city-name-for-my-weather-view\/","title":{"rendered":"How to define a Custom City Name for my weather view?"},"content":{"rendered":"\n<p>Instead of using the default city name that comes from <strong>OpenWeatherMap<\/strong>, you can set a Custom Location Name with the plugin. Enter your location name in the \u201c<strong>Custom Location Name<\/strong>\u201d text field. The default name will be overridden.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69e641565d37a&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69e641565d37a\" class=\"wp-block-image size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1024\" height=\"480\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/locationweather.io\/docs\/wp-content\/uploads\/2023\/11\/Custom-Location-Name-LW-Pro-1024x480.png\" alt=\"\" class=\"wp-image-817\" srcset=\"https:\/\/locationweather.io\/docs\/wp-content\/uploads\/2023\/11\/Custom-Location-Name-LW-Pro-1024x480.png 1024w, https:\/\/locationweather.io\/docs\/wp-content\/uploads\/2023\/11\/Custom-Location-Name-LW-Pro-300x140.png 300w, https:\/\/locationweather.io\/docs\/wp-content\/uploads\/2023\/11\/Custom-Location-Name-LW-Pro-768x360.png 768w, https:\/\/locationweather.io\/docs\/wp-content\/uploads\/2023\/11\/Custom-Location-Name-LW-Pro.png 1040w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n","protected":false},"parent":0,"menu_order":59,"template":"","docs_cat":[9],"class_list":["post-564","docs","type-docs","status-publish","hentry","docs_cat-faqs"],"taxonomy_info":{"docs_cat":[{"value":9,"label":"FAQs"}]},"featured_image_src_large":[],"author_info":[],"comment_info":"","_links":{"self":[{"href":"https:\/\/locationweather.io\/docs\/wp-json\/wp\/v2\/docs\/564","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/locationweather.io\/docs\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/locationweather.io\/docs\/wp-json\/wp\/v2\/types\/docs"}],"version-history":[{"count":4,"href":"https:\/\/locationweather.io\/docs\/wp-json\/wp\/v2\/docs\/564\/revisions"}],"predecessor-version":[{"id":818,"href":"https:\/\/locationweather.io\/docs\/wp-json\/wp\/v2\/docs\/564\/revisions\/818"}],"wp:attachment":[{"href":"https:\/\/locationweather.io\/docs\/wp-json\/wp\/v2\/media?parent=564"}],"wp:term":[{"taxonomy":"docs_cat","embeddable":true,"href":"https:\/\/locationweather.io\/docs\/wp-json\/wp\/v2\/docs_cat?post=564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}