Setting up the weather on our themes
Some of our themes feature a weather widget on the header, this is provided by Yahoo’s weather API. Yahoo has recently made some changes to the authentication of said API which made setting up the weather on the themes a bit more complex, lets see how it’s done.
Setup the Weather
You can find this section under Customize > Weather or CustomizeWeather Defaults depending on the theme you are using.
- Add your OpenWeatherMap.org API key (See below how to generate one).
- Add your location ID. Your area’s location ID number which can be found by visiting OpenWeatherMap.org and searching for your city. Once you are on your city’s page, the location ID is the last numeric part of the URL. For example, the URL for London, UK is
http://openweathermap.org/city/2643743and the location ID is
- Change the unit display
Generate an API Key
Next we click the Openweathermap.org URL. This will open a new window where you need to create a new account account or login if you already have one.
Once logged in navigate to the API tab and generate a new API key for your project. You can create as many keys as you wish
- Select the API keys tab
- Add your key name
- Generate your key (will appear on the left)