Embed league standings on WordPress
WordPress has a built-in Custom HTML block, so no plugin is needed. The script snippet works on self-hosted WordPress and on WordPress.com Business plans and above.
Which snippet: Use the script snippet so the widget resizes itself. If your host or a security plugin strips script tags, fall back to the plain iframe snippet.
Pick your league and widget, then copy the script snippet and come back here.
Step by step
- 1
Edit the page or post
Open the page in the block editor (Gutenberg).
- 2
Add a Custom HTML block
Click the plus icon, search for Custom HTML, and insert it where you want the standings.
- 3
Paste the snippet
Paste the snippet from the widget generator directly into the block. Use the Preview tab in the block toolbar to check it.
- 4
Update the page
Click Update or Publish. To put the widget in a sidebar or footer instead, add the same Custom HTML block under Appearance, then Widgets.
Things that trip people up
- The classic editor works too: switch from Visual to Text mode before pasting, otherwise the editor escapes the HTML.
- WordPress.com Free and Personal plans block custom scripts. Use the iframe snippet, or upgrade.
- Security plugins such as Wordfence can strip iframes or scripts. Allow statharbour.com if the widget disappears after saving.
- Elementor, Divi and Beaver Builder each have an HTML widget that accepts the same snippet.