Installing the YouTube Shorts Feed
After clicking Save & get code in the YouTube Shorts Feed editor, you'll get a two-line snippet. Paste it where the feed should appear, using the steps for your platform below.
- Paste it on the page, in an HTML or code block at the spot where the feed should show. Not in your site's header code.
- Check your published site. Most builders don't run custom code inside their editor, so the feed may look empty there.
Jump to: Squarespace · WordPress · Webflow · Shopify · Wix · Framer · Custom HTML · Several feeds · Content Security Policy
Squarespace
- Edit the page and click Add Block → Code where you want the feed.
- Paste the snippet and turn off Display Source.
- Click Save, then open your live site in a new tab to check it.
Squarespace runs scripts in Code Blocks only on plans that support custom code. The feed doesn't show inside the Squarespace editor; check your published site or an incognito window instead.
WordPress
Block editor (Gutenberg)
- Click + where you want the feed and add a Custom HTML block.
- Paste the snippet and click Update or Publish.
Elementor
- Drag the HTML widget onto the page.
- Paste the snippet and click Update.
If you use a caching or optimization plugin that "delays" or "combines" JavaScript, exclude redesignee.com/embed/feeds.js from it, then clear the cache.
Webflow
- Open the Add panel and drag a Code Embed element where you want the feed.
- Paste the snippet and click Save & Close.
- Publish the site. The feed shows on the published site, not in the Designer.
Shopify
- Go to Online Store → Themes and click Customize.
- Open the page you want, click Add section and choose Custom Liquid (some themes call it Custom HTML).
- Paste the snippet and click Save.
Wix
- Click Add Elements → Embed Code → Embed HTML.
- Choose Code, paste the snippet and click Update.
- Drag the embed box to the full width you want and make it tall enough for the feed.
- Publish and check your live site.
Wix shows embedded code inside a fixed-size frame, so the feed can't resize the box by itself, and the video popup opens inside that box. If the popup feels cramped, set On click to Open on the platform in the feed settings.
Framer
- Click Insert, search for Embed and add it to the page.
- Set its type to HTML and paste the snippet.
- Set the embed's width to Fill and its height to Fit Content (or a fixed height), then publish.
Custom HTML
Paste the snippet into your page's HTML where the feed should appear. The feed takes the full width of the element it's in, so place it in a container with the width you want.
Several Feeds on One Page
Each feed has its own <div data-rd-feed="…"> line. If you put several feeds on one page, you can include the <script> line just once; including it more than once is harmless too.
Content Security Policy
Most sites don't need this. If your site sends a strict Content Security Policy header, allow these sources:
script-src | https://redesignee.com |
|---|---|
connect-src | https://redesignee.com |
img-src | https://i.ytimg.com https://yt3.ggpht.com https://yt3.googleusercontent.com |
frame-src | https://www.youtube-nocookie.com |
style-src | 'unsafe-inline' (the feed's styles live inside the feed itself), plus https://fonts.googleapis.com if you picked a Google Font |
font-src | https://fonts.gstatic.com (only if you picked a Google Font) |