How to embed a video on Wix without YouTube
Add a video from any host to a Wix site with the Embed HTML element, without YouTube's logo and suggested videos. Steps for the Wix Editor and Wix Studio.
The Wix video element takes videos you upload to Wix or links from sites like YouTube and Vimeo. Uploads count against the storage and video limits of your Wix plan, and a YouTube link brings YouTube's branding and suggested videos onto your page. With the Embed HTML element you can show a player from any video host instead.
Before you start
Upload the video to Vidlify (free with 30 GB of storage), open it and copy the embed code under Share and embed. For Wix the fixed size version is easier, because you set the size of the box in the editor anyway.
Wix Editor
- Open your site in the editor and click Add Elements (the + on the left).
- Click Embed Code, then Embed HTML. A grey box appears on the page.
- Click Enter Code on the box.
- Choose Code, paste the embed code and click Update.
- Drag the corners of the box until the whole player fits, for example 640 × 360 for a 16:9 video.
- Click Publish.
Wix Studio
- Click Add at the top left and open Embed & Social.
- Choose Embed code and drag it onto the page.
- Click Enter Code, paste the embed code and apply it.
- Set the size of the element and publish.
Mobile view
Wix shows desktop elements on mobile too, but the size often needs a fix. Switch to the mobile view in the editor, select the embed and make it as wide as the screen. The code itself can only be changed in the desktop view.
Useful options
Add these to the address in the src attribute of the code:
?t=30starts the video at second 30?autoplay=1&muted=1starts it automatically, muted (why muted)
Domain lock and Wix
Wix runs embed code inside its own frame on a separate Wix address. If you lock the video to your domain under Allow embedding only on these domains, the player may see that Wix address instead of your site and stay black. If that happens, turn the lock off for this video and keep it unlisted instead (unlisted vs private).
Troubleshooting
- Scroll bars around the video: the box is smaller than the player. Make the element bigger or make the
widthandheightin the code smaller. - The element shows nothing in the editor: some embeds only load in Preview or on the live site. Click Preview to check.
- The video is cut off on phones: adjust the element in the mobile view, see above.
Source for the Wix steps: Wix Help Center, Embedding a site or a widget.