Guides › HTML / PHP sites › Site down or error screens

YouTube Video Embed Not Working or Showing an Error on Your Website

The embedded video is blank, blocked or says unavailable. Check embedding permissions, the link and privacy settings.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.

Video settings

The embed code

Use the Share > Embed code, or an address of the form https://www.youtube.com/embed/VIDEO_ID. A normal watch link (/watch?v=) does not work inside an iframe.

Page problems

Speed

Load embeds lazily to keep pages fast. See our vitals guide.

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-21.