How to Embed a Weather Widget on Your Website

August 13, 2026

With Jotform’s Weather Widget, you can display real-time weather information for any location directly on your website. Simply choose the location, customize the widget’s appearance, and embed it on your website to keep visitors informed about current weather conditions and forecasts.

Adding a Weather Widget is a great way to provide useful, up-to-date information for your audience. Whether you run a travel website, local business, event page, or community portal, displaying the weather can enhance the visitor experience and help users plan their day.

Note

The widget displays weather information based on the location you select in the Widget Settings. Checking that the location details are accurate ensures visitors see the correct forecast.

Creating Your Weather Widget and Getting the Embed Code for it

Before you can add the Weather Widget to your website, you’ll first need to choose the location, customize how the weather information is displayed, and copy its embed code. Here’s a quick walkthrough:

  1. On the top-left side of your Workspace page, click on Create.
Workspace highlighting the Create button in the top-left corner
  1. Then, in the menu that opens up, select Website Widget.
Create menu displaying the Website Widget option ready to be selected
  1. Next, enter Weather in the Search bar in the upper-left corner of the Choose Website Widget menu.
  2. Then, at the bottom of the search results, click on Use Widget.
Choose Website Widget page showing Weather in the search bar and the Use Widget button in the search results
  1. Now, in the Widget Properties menu that opens on the right side of Website Widgets, under the General tab, set up these properties:
    • Display Weather For — Choose whether to display weather information for a specific location or a visitor’s location.
    • City, Zip, or Coordinates — Enter the location you want the widget to display weather information for.
    • Custom Location Name — Replace the default location name with your own custom label.
    • Temperature Unit — Choose whether temperatures are displayed in Celsius (°C) or Fahrenheit (°F).
    • Expand Forecast — Show or hide the extended weather forecast below the current weather conditions.
    • Forecast Days — Select how many days of weather forecast to display.
    • Weather Details — Choose which weather information to show, such as humidity, wind speed, feels-like temperature, and other available details.
Configuring the Weather widget by selecting a location, temperature unit, forecast length, and weather details to display
  1. Next, under the Styles tab, customize these properties:
    • Weather Template — Choose a visual style for how the weather information is displayed.
    • Weather Icon Animation — Enable or disable animated weather icons for a more dynamic appearance.
    • Background — Choose a background color for the widget.
    • Text — Set the color of the primary text displayed in the widget.
    • Secondary — Customize the color of secondary text and supporting weather information.
    • Corner Radius — Adjust how rounded the corners of the widget appear.
Customizing the Weather widget by selecting a weather template, enabling icon animations, adjusting colors, and setting the corner radius
  1. Then, scroll down and adjust these settings:
    • Jotform Branding — Show or hide Powered by Jotform in the widget.
    • Custom CSS — Apply your own CSS code for advanced styling beyond the built-in settings.
Configuring the Weather widget by showing or hiding Powered by Jotform and adding Custom CSS for advanced customization
  1. Now, under the Layout tab, configure these properties:
    • Card Width — Adjust the width of the widget to better fit your website’s layout.
    • Devices to Display On — Choose whether the widget appears on desktop devices, mobile devices, or both.
  2. Once you’ve finished, in the pink navigation bar at the top of the page, click on Publish.
Configuring the Weather widget layout by adjusting the card width, choosing supported devices, and clicking Publish to save the changes

Note

You’ll be asked to log in to your Jotform account, if you’re not already, or sign up for one. Once you’ve done that, you’ll be able to get the embed code for your widget.

  1. Then, in the Embed section, click on Copy Code, and, if you already know how, paste that into the Embed section on your platform, and you’re good to go.
  2. To view embedding instructions for your widget, click on Platforms in the menu on the left side of the page.
Copying the Weather widget embed code or selecting Platforms to view platform-specific embedding instructions
  1. Next, in the Platforms section on the right, select the platform you want to view embedding instructions for. Or, use the Search bar at the top of the section to find it easily.
Selecting a website platform or using the search bar in the Platforms section to view Weather widget embedding instructions
  1. Then, follow the steps in the How to Embed Your Widget section to add it to your website.
Following the How to Embed Your Widget instructions to embed the Weather widget on a supported website platform

That’s it! Your Weather Widget will now appear on your website with the location, design, and settings you selected, giving visitors quick access to current weather conditions and forecasts. See the screenshot below for an example of how it looks.

Sample website showing a fully embedded Weather widget with live weather information and forecast details

Note

You can manage the website widgets you’ve created at any time from your account. For a full breakdown of how to do it, head over to our guide on How to Manage Website Widgets.

Pro Tips

  • Showing multiple forecast days can be helpful for travel, event, and tourism websites, while a shorter forecast may work better for business or local community pages where visitors only need current conditions.
  • Preview the widget on both desktop and mobile layouts to ensure it looks great on all screen sizes.

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Podo Comment Be the first to comment.
Still have unanswered questions?

We’re here for you 24/7, anytime you need us day or night. Have a question or need a hand with something? Our team is always ready to help out.