How to Embed Weather Widget on Your Website

October 16, 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 the embed code for it. Here’s a quick walkthrough:

  1. On the top-left side of your Workspace page, click on Create.
Jotform Workspace page showing the Create button in the top-left corner, ready to create a new form or other item
  1. Then, in the menu that opens up, select Website Widget.
Then, in the menu that opens up, select Website Widget.
  1. Next, enter Weather in the Search bar in the upper-left corner of the Choose Website Widget page.
  2. Then, at the bottom of the search results, click on Use Widget.
Choose Website Widget page showing the Search bar with “Weather” entered and the Use Widget button at the bottom of the search results to select the Weather widget
  1. Now, in the Widget Properties menu that opens on the right side of Website Widgets, 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.
Website Widgets Widget Properties menu showing the Weather widget settings for selecting a location, customizing the location name, choosing Celsius or Fahrenheit, expanding the forecast, setting the number of forecast days, and selecting which 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.
Weather widget Styles tab showing options to customize the Weather Template, enable or disable Weather Icon Animation, set the Background, Text, and Secondary colors, and adjust the Corner Radius to change the widget’s appearance
  1. Then, scroll down and adjust these settings:
    • Jotform Branding — Show or hide Powered by Jotform in the widget.
    • Font — Toggle this on to select and match your website’s font.
    • Custom CSS — Turn this on to add custom CSS code and apply advanced styling to the widget.
Weather widget Styles tab showing the Jotform Branding, Font, and Custom CSS options for displaying or hiding Jotform branding, matching the widget’s font to the website, and applying custom CSS styling
  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.
Weather widget Layout tab showing the Card Width slider for adjusting the widget’s width and the Devices to Display On options for choosing desktop, mobile, or both, with the Publish button in the pink navigation bar at the top of the page

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.
Weather widget Embed section showing the Copy Code button for copying the widget’s embed code, with the Platforms option in the left-side menu for viewing 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.
Weather widget Platforms section showing available platforms and a Search bar at the top for finding the platform you want to view embedding instructions for
  1. Then, follow the steps in the How to Embed Your Widget section to add it to your website.
Weather widget platform instructions showing the How to Embed Your Widget section with step-by-step instructions for adding the widget to your website

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:

Weather Widget displayed on a website, showing the selected location’s current weather conditions and forecast in the configured design

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.