How can we help you today?

How to Embed a Weather Widget into a Modern SharePoint Site

Learn how to add a weather widget to your SharePoint page using ShortPoint's free Code Editor Web Part. You may go through the quick walkthrough (if you're already familiar with the Code Web Part) or follow the step-by-step tutorial for detailed instructions.


sample page with weather widget


TABLE OF CONTENTS


Prerequisite


Quick Walkthrough

1. Find the weather widget you want to use and copy the embed code.

2. Go to your SharePoint page and add the ShortPoint Code Web Part.

3. Click the Edit Properties icon of the ShortPoint Code to edit it.

4. Click Import Code to paste the copied code.

5. If you wish to edit the code, click the field you want to make changes to and edit it according to your needs. Once done, click Save.

6. Republish the page.


Step-by-step Tutorial

Go through the steps to learn how to add a weather widget to your page:


Step 1: Copy the Embed Code

Look for the weather widget you want to use. To help you get started, we made these widgets for you. Copy the option you want to use:


Option 1: Weather Scrolling Ticker


Weather scrolling ticker


<div id="ww_306ac85834cbd" class="weather-scrolling-ticker" v='1.3' loc='id' a='{"t":"ticker","lang":"en","sl_lpl":1,"ids":[],"font":"Arial","sl_ics":"one_a","sl_sot":"celsius","cl_bkg":"image","cl_font":"#FFFFFF","cl_cloud":"#FFFFFF","cl_persp":"#81D4FA","cl_sun":"#FFC107","cl_moon":"#FFC107","cl_thund":"#FF5722"}'>More forecasts: <a href="https://oneweather.org/london/30_days/" id="ww_306ac85834cbd_u" target="_blank">30 day weather forecast London</a></div>
<script async src="https://app3.weatherwidget.org/js/?id=ww_306ac85834cbd"></script>
|||||
.weather-element {
    zoom: 1.2;
    text-align: center;
}
.weather-element {
    user-select: none !important;
}
.weather-element,
.weather-element a,
.weather-element a:visited,
.weather-element a:hover {
    color: white;
    cursor: default;
}
.ww-box {
    margin-left: auto !important;
    margin-right: auto !important;
}
.ww_source {
    display: none !important;
}
.ww_line {
    margin 0 28px !important;
}
div.ControlZone--control:has(div[id^="ShortPointCode-"]) {
    background-color: unset !important;
}
&>div {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    color: white !important;
}
|||||

Option 2: Weather Large Widget


weather large widget


<div id="ww_0d339707284ef" class="weather-large-card" v='1.3' loc='auto' a='{"t":"horizontal","lang":"en","sl_lpl":1,"ids":[],"font":"Arial","sl_ics":"one_a","sl_sot":"celsius","cl_bkg":"image","cl_font":"#FFFFFF","cl_cloud":"#FFFFFF","cl_persp":"#81D4FA","cl_sun":"#FFC107","cl_moon":"#FFC107","cl_thund":"#FF5722"}'>
    More forecasts: <a href="https://oneweather.org/orlando/30_days/" id="ww_0d339707284ef_u" target="_blank">Orlando weather 30 day</a>
</div>
<script async src="https://app3.weatherwidget.org/js/?id=ww_0d339707284ef"></script>
|||||
.weather-card {
    border-radius: 20px !important;
    width: 100%;
    max-width: 500px /*{Field0 - Max Width (Default 500px)}*/;
    zoom: 1.5 /*{Field1 - Overall Size (Default 1.5)}*/;
    text-align: center;
}
.weather-card {
    user-select: none !important;
}
.weather-card,
.weather-card a,
.weather-card a:visited,
.weather-card a:hover {
    color: white;
    cursor: default;
}
.ww-box {
    margin-left: auto !important;
    margin-right: auto !important;
}
.ww_source {
    display: none !important;
}
.ww_arr_right,
.ww_arr_left {
    opacity: 0 !important;
    cursor: default !important;
}
.ww_line {
    margin 0 28px !important;
}
div.ControlZone--control:has(div[id^="ShortPointCode-"]) {
    background-color: unset !important;
}
&>div {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}
|||||

Option 3: Weather Thin Bar


weather thin bar


<div id="ww_e2e3f85ec21fc" class="weather-thin-bar" v='1.3' loc='id' a='{"t":"responsive","lang":"en","sl_lpl":1,"ids":[],"font":"Arial","sl_ics":"one_a","sl_sot":"fahrenheit","cl_bkg":"image","cl_font":"#FFFFFF","cl_cloud":"#FFFFFF","cl_persp":"#81D4FA","cl_sun":"#FFC107","cl_moon":"#FFC107","cl_thund":"#FF5722"}'>More forecasts: <a href="https://oneweather.org/new_york_city/30_days/" id="ww_e2e3f85ec21fc_u" target="_blank">30 day weather forecast NYC</a></div>
<script async src="https://app3.weatherwidget.org/js/?id=ww_e2e3f85ec21fc"></script>
|||||
.weather-element {
    zoom: 1.2 /*{Field0 - Overall Size Default 1}*/;
    text-align: center;
}
.weather-element {
    user-select: none !important;
}
.weather-element,
.weather-element a,
.weather-element a:visited,
.weather-element a:hover {
    color: white;
    cursor: default;
}
.ww-box {
    margin-left: auto !important;
    margin-right: auto !important;
}
.ww_source {
    display: none !important;
}
.ww_line {
    margin 0 28px !important;
}
div.ControlZone--control:has(div[id^="ShortPointCode-"]) {
    background-color: unset !important;
}
&>div {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    color: white !important;
}
|||||
TIPIf you’re looking for more weather widget designs, you can check out weatherwidget.org. They have a selection of weather widgets, from tickers to vertical and horizontal widgets.

Step 2: Add the ShortPoint Code Web Part

Go to the SharePoint page where you want to add the weather widget and click Edit:

Edit


Click the close icon to leave the Toolbox:

close icon


Select the plus icon to add a web part:

plus icon


Use the search bar to look for ShortPoint Code, or scroll down until you see the Advanced section. Click ShortPoint Code:

ShortPoint code


Step 3: Edit the ShortPoint Code Web Part

Click the Edit Properties icon:

Edit properties icon


Step 4: Paste the Code

Click Import Code to paste the code you copied:

Import Code


You will get a pop-up asking if you want to overwrite the current code with the code in your clipboard. Click OK:


OK

You will get a notice that the code was successfully imported from your clipboard. Click OK again:


OK


If you wish to customize the code, click the field you want to edit. For example, if we want to make changes in the Edit CSS field, we simply need to select it, make our changes, and click Save:


customizing code


Step 5: Republish Page

Click the close icon to leave the ShortPoint Code Editor:


close icon


Click Republish once you’re ready to make your changes live:

Republish


Congratulations! You now have an on-the-go weather widget on your SharePoint page. If you’re looking for more ways to use the ShortPoint code web part, you can check the tutorials below:

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

World's best intranet sites are designed using ShortPoint

Get started today! Learn more
See all 18 topics

Start a trial

Ignite your vision. Install ShortPoint directly on your site, or play in sandbox mode. No credit card required.

Get started today

World’s best intranet sites are designed using ShortPoint

Thousands of companies using ShortPoint everyday to design, brand and build award winning intranet sites.

Get started Learn more