10 ready-made weather widget styles
Click "Use this style" to load it into the builder above and customise it further.
How to create and add a weather widget to your website
Just copy and paste, no coding needed. The widget updates its weather data automatically, so there's nothing else to do.
- 1Choose a location
Type a city, county, state or ZIP code into the "Choose a location" box and click the matching result.
- 2Choose a style
Pick 1 of 10 styles (9 shows NWS weather alerts and hurricanes, 10 shows tides for coastal places). Vertical styles (1, 2, 6, 8) suit sidebars; style 3 suits footers; style 4 suits narrow spaces.
- 3Choose days & colors
Choose 3, 5 or 7 days. Click a preset palette or pick each color to match your website.
- 4Copy the embed code
The preview updates as you make changes. When you're happy, click Copy code.
- 5Paste it into your website
Paste the code where you want it to appear (see the platform guides below), save and reload the page.
Add it to a sidebar or footer
- Go to Appearance → Widgets in your WordPress dashboard.
- Add a Custom HTML block to the area you want, for example "Sidebar".
- Paste the embed code into the block and click Update.
Add it inside a post or page
- Open the post, click the + button and choose the Custom HTML block.
- Paste the embed code, click Preview to check it, then Update.
- In the Classic Editor: switch to the Text tab before pasting.
- Open your Blogger dashboard and choose Layout.
- In the area where you want the widget, click Add a Gadget → choose HTML/JavaScript.
- Paste the embed code into the content box, add a title (optional) and click Save.
- To add it inside a post: open the post, switch to HTML view and paste the code.
- Open the page's HTML file (for example
index.html). - Paste the embed code where you want it inside the
<body>tag, for example inside<div class="sidebar">. - Save the file, upload it to your server and reload the page.
<div class="sidebar">
<!-- Paste the weather widget embed code here -->
</div>
- In your site builder (Wix, Squarespace, Google Sites, Shopify…), add an Embed / HTML / Code element.
- Paste the embed code into that element.
- Resize the element to match the height in the code (the
heightattribute) so the widget isn't cut off.
Frequently asked questions
Is the widget free?
Completely free, with no account needed. Just keep the credit link at the bottom of the widget.
Does the widget update automatically?
Yes. Every time your page is opened, the widget loads the latest weather data, so you never need to paste the code again.
Does the widget work well on mobile?
Yes. The widget adapts to the width of its container. If you turn on "Fit to container width (100%)", it will be as wide as the column it sits in.
The bottom of the widget is cut off. What should I do?
Increase the height value in the embed code (for example from 330 to 380). Some themes add padding around iframes, so they need a little more height.
How do I change the location or colors after adding it?
Build the widget again on this page with the new options, copy the new code and replace the old code on your website.
Will the widget slow down my website?
Barely. The widget is a lightweight iframe that only loads when visitors scroll to it (the loading="lazy" attribute) and runs no code on your page.