Paste the weather widget's code onto a page in Content > Page Edit, using the editor view's HTML option, not into a News Item. The News Item editor removes script code, so a weather widget saved in a News Item comes out blank. To point visitors to the weather from your news, add a News Item that links to that page.
Applies to: Org admins whose role includes Page Edit and the Legacy Editor permission · All plans · Legacy content editor
Where: Content > Page Edit > Switch to Editor > HTML (at the bottom of the editor); Content > News Items
Before you start
- Get the widget code from a weather site. TeamSideline doesn't provide weather; the widget shows what the weather site publishes. Willy Weather (http://www.willyweather.com/) offers free website widgets: find its Website Widgets link, choose a size (the long "High Bar" or the narrow "Side Bar" suit most pages), add your location or zip code, set the color and width, generate the widget and copy the whole code it gives you. Those steps are the weather site's own and can change; for help with them, contact the weather site.
- Choose the page. Use a custom page (to add one, see How to add a custom page to your site menu (Legacy content editor)) or your home page's text, which Page Edit opens first.
- Check your permissions. Page Edit must show a Switch to Editor (or Switch to Content Builder) button. It needs the Legacy Editor permission in your admin role.
Add the weather widget to a page
- Go to Content > Page Edit.
- In Page to Edit, choose the page.
- Click Switch to Editor. If the button says Switch to Content Builder, you're already in the editor view.
- Click HTML at the bottom of the editor. The page's code replaces the formatted text.
- Paste the widget code where the weather should appear, for example after the page's last paragraph. Don't change the code.
- Click Design to go back to the formatted view. A widget built with script code can show as an empty space in the editor; that's expected.
- Click Save.
What you'll see: "Page content updated." Open the page on your website to see the weather widget.
Point a News Item to the weather page
- Go to Content > News Items.
- Click Add News Item, or click the Edit icon (pencil) on an existing weather News Item.
- Enter a News Item Title, such as "Weather", and a short News Item Description, such as "Check the weather before you head to the fields."
- Make the description link to the weather page: highlight some of its words and choose the page from the editor's Links drop-down (see How to link News Item text to a page (Legacy content editor)). If the News Item has a picture, you can also set Image Link Type to Page and choose the weather page in Page.
- Click Save.
What you'll see: "The News Item has been created." (or "The News Item has been saved."). A new News Item starts hidden: on the News Items list, click its eye icon so it turns green. See How to add, highlight and reorder News Items (Legacy content editor).
If it doesn't work
- The widget code is gone when you open the News Item again, and the weather doesn't show. The News Item editor removes script code. Put the widget on a page in Page Edit's editor view instead, as above, and link the News Item to that page.
- The code is there but the widget is blank on your website. Copy a fresh widget code from the weather site and replace the old one. If it's still blank, check with the weather site that the widget is still offered.
- There's no Switch to Editor button. Your admin role doesn't include the Legacy Editor permission. Ask an admin whose role includes it to add the widget.
- The widget stopped working after the page was edited. Open the page in the editor view, click HTML, replace the widget's code with a fresh copy and click Save. Keep editing that page in the editor view, which keeps script code as you pasted it.
- Visitors see your new website instead. Once your organization's Editor 2.0 website is live, visitors are sent to it, so Page Edit changes don't show there.
Good to know
- The Home Page Banner removes script code too, so don't paste a widget there either.
- To announce a rainout or a weather delay on an Editor 2.0 website, use the Top Bar message: see CMS: Post an announcement banner on your website (Top Bar message for rainouts and deadlines).
- A News Item's description holds up to 3,000 characters, counting its HTML formatting.
Related articles
- How to edit a page's content with Page Edit (Legacy content editor)
- How to add a custom page to your site menu (Legacy content editor)
- How to add, highlight and reorder News Items (Legacy content editor)
- How to link News Item text to a page (Legacy content editor)
- How to embed a GameChanger widget on your site (Legacy content editor)
- CMS: Post an announcement banner on your website (Top Bar message for rainouts and deadlines)