Tag Archives: Website

WordPress Plugin Update: Weather Widget

To all the Nebraska Libraries on the Web users, I had to remove the weather widget because it was no longer being updated. But fear not! There is another way to add a weather widget to your site without a separate plugin.

The easy way for you is to just email me at amanda.sweet@nebraska.gov and ask me to add a weather widget to your site, along with the location where you would like the widget added. For example: can you add a weather widget on the home page on the right side, near the top?

Alternatively, you can follow these steps:

  1. Go to this website: https://weatherwidget.io/
  2. Type your location in the “Select Location” area.
  3. Change Units to Fahrenheit
  4. (Optional) Change the size of the widget by clicking and dragging the border. The pixel size will appear on the right side so you know what size it is.
    • Average side bar size is 300px.
    • Average full-width top banner size is 1200px
  5. (Optional) Click on Options across the top and change the number of days in the preview.
  6. Click “Get Code”. Copy to clipboard.
  7. Login to WordPress and go to the section where you want the widget to appear.
  8. Go to WP Code Block and add a code snippet. Paste everything in the <script> tags. Make sure you choose “Javascript as a language type.
  9. Copy everything in the <a class></a> tags.
  10. Go to the page/ section where you want the widget to appear.
  11. Add an HTML block and paste what you copied in Step 9.
  12. Add a WPCode block and choose the name of the snippet you created in step 8.
  13. The widget should appear. If it doesn’t show on the screen, Publish the changes and check if the widget shows up on the actual website.

Again, if all else fails, just email me and I’ll get it added.

Posted in Nebraska Libraries on the Web, Technology | Tagged , | Leave a comment