How to embed in a specific CMS
If you're looking for tips on embedding Wistia videos on a specific site builder or CMS, see this guide.
Fallback embed code
The Standard (inline) embed code is the default and works on most sites, but it relies on JavaScript, and some platforms won't support this. Certain site builders and course platforms (i.e., GoHighLevel, Skilljar, Rise, SharePoint, Drupal) may only accept a plain iframe or strip out the Wistia player script, so the Standard embed code won’t work. If that sounds like your setup, or if your embed is acting funky for any reason, try the Fallback (iframe) embed instead.
To get your Fallback embed code, click "Embed" from your media's page. In the Embed Media modal, scroll down, select "Advanced Options," and then select the "Fallback" option. From here, copy your new code.
If your platform asks for a video URL instead of code
Some tools only have a "video URL" field. Pasting a share link there can show a "Media not found" error or load the whole Wistia page. Instead, copy your Fallback embed code and paste only the link inside src="...". That's the player URL these fields expect.
Using Domain Restrictions? The Fallback embed alone won't pass the check. The Wistia player script also needs to be on the page itself, outside the iframe.
Black bars on the top and bottom or sides of the video
Does your video look sort of like this image?
Those lines on the top and bottom (or left and right) are the worst! This can happen if the dimensions in your embed code don’t match your video's dimensions, or if your thumbnail image doesn't share the same aspect ratio as your video.
To fix this, use a responsive embed code. Also, make sure you’re not manually adjusting the video size in the embed code outside of the Wistia environment.
If your video sits inside a course platform or page builder, that platform's own frame may be setting the size. Adjust the outer container to match your video's aspect ratio (for example, 16:9), rather than editing the Wistia embed code.
This video is not authorized to be embedded here
Do you see this big white box when you embed your video?
This means you have Domain Restrictions enabled in your account settings. This is a security feature you can use to ensure your videos are only embedded on the sites you permit. An Account Owner can manage the domains where your video can be embedded in their account settings.
When adding domains, separate them with commas, spaces, or line breaks, and leave off https:// and any page paths. Allowlisting a domain covers every page on it.
For subdomains, entering a parent domain like example.com automatically allows its subdomains too (like app.example.com). Entering a single subdomain like support.example.com allows only that one.
Tip
Using the Fallback (iframe) embed? Make sure the player script is on the page outside of the iframe, not just inside of it.
Note
When Domain Restrictions are enabled, opening a fast.wistia.com or Channel link directly won't play. A Channel link may seem to work when you preview it from inside Wistia, but viewers opening it elsewhere will see "This channel is not authorized to be embedded here." Embed the Channel on an allowlisted page instead.
Still seeing this message on an approved site?
Test the live, published page. Page editors and "preview" modes wrap content in extra frames that hide your site's address from the player, so the message can show there even when everything is set up correctly.
Course platforms and LMSs may need their own domains. If your video is in an Articulate Rise course or an LMS, it may load from the platform's domain (for example, its content or user-content domain). Add those domains to your allowlist too.
Check your site's referrer policy. Domain Restrictions rely on your browser telling Wistia which page the video is on. A Referrer-Policy of no-referrer or same-origin blocks that. Ask your web team to use the default strict-origin-when-cross-origin. See Referrer Policy and Wistia's Domain Restrictions.
Is the embed nested inside another iframe? A non-Wistia iframe around your video can hide the page address. Send us the page link, and we'll take a look.
Video not resizing correctly
There are generally two ways in which a video might not display at the size you’d expect.
The first situation is embedding in WordPress using oEmbed, but the video is displaying at smaller dimensions than what you set when you copied the embed code. If that’s happening, it’s possible that your WordPress theme specifies a maximum width for content embedded with oEmbed.
The second situation is when you’d like your video to be responsive, but it’s not changing size when it should.
First things first, make sure you’re using the Responsive option. If that option is set, but your embed is still not responding correctly, check to make sure that the parent container (that’s the HTML element surrounding your video, like a set of <div> tags) is set to the width you’d like. That’s what the embed code will use to determine how wide the video should be.
If your platform places your video inside its own frame (common in course platforms and LMSs), that frame controls the size. Adjust its width and aspect ratio in the platform's settings, or ask the platform's support team for help.
If you’re having a problem with the size of your video and the tips above don’t do the trick, send us a link to the video, and we’ll help you get it looking great!
Video looks broken on page
If your video plays and looks good in Wistia, but doesn't load, looks blurry, or player controls are missing on your site, something on the page is usually interfering, such as a theme, plugin, script, or security setting.
The quickest way to check this is to paste a fresh, unedited embed code directly from Wistia onto a blank webpage. If the video works here, something on your original page (a theme, plugin, or page editor) may be getting in the way.
Most often, the culprit is one of these:
The embed code has been changed or is self-hosted. Minifying it, lazy-loading it, or hosting the player script yourself isn't supported. Paste a fresh embed code straight from the Embed modal to see if the issue resolves. (Settings you choose in the Embed modal, and our official npm and React packages, are fine.)
A performance/optimization plugin is stripping or deferring JavaScript (common in WordPress). Try excluding the Wistia script from this plugin.
A Content Security Policy (CSP) on your site is blocking Wistia domains. To check, open your browser console and look for CSP errors naming
fast.wistia.net. Our Wistia-Friendly CSP guide lists the domains you'll need to allow.The code is in the wrong kind of block. In WordPress builders like Avada or Elementor, paste the embed code into an HTML or Code block, not a text block or a URL field.
A cookie consent tool is blocking the player. If the video only goes blank after a viewer declines cookies, mark Wistia's domains as Functional or Essential in your consent manager.
Embeds failing behind a firewall or corporate network
If an embed loads fine at home or on a phone's mobile data but shows a blank player area on an office, school, or VPN network, the network is likely blocking Wistia's domains.
Signs the network is the cause:
The player area is blank with no error message.
It works on a mobile hotspot but not on the corporate or school Wi-Fi.
It works for some viewers or locations but not others.
To fix it, have your IT team allowlist Wistia's required domains. The full list lives in our Firewall and Network Allowlist Settings article. To pinpoint what's blocked, open the page, go to the "Network" tab in your browser's Developer Tools, reload, and look for failed or blocked requests to wistia.com or the CDN domains, then send those hostnames to your IT team.
Note
A blank player behind a firewall is different from the "This video is not authorized to be embedded here" message. That message is a Domain Restrictions setting, not a network issue. See that section above.
What to send us if you still need a hand
The best way to get a speedy solution is to send us the live page where your video is embedded (including a login if the page is gated), the embed code you're using, and a quick screenshot of what you're seeing. The more information we have, the quicker we can help!



