Categories
Video

How To Hide The Controls On A YouTube Video

This is a quick post to explain how to hide the controls on a YouTube Video.

Share
Go to Youtube and copy the embed code for the video you want to use.

Paste the embed code in the WordPress Text editor.
Find the “src” attribute in the embed code.
To the end of the video url add

?autoplay=0&showinfo=0&controls=0

The parameter autoplay=0 stops the video from automatically playing. If you want it to autoplay add autoplay=1 instead.
The parameter controls=0 hides the video controls.

<iframe width="560" height="315" src="//www.youtube.com/embed/VpVk59Z4tPk?autoplay=0&showinfo=0&controls=0" frameborder="0" allowfullscreen></iframe>

The final video will work similar to the one below.

You can add more parameters to the url to further control the playback of the video.

  • To have the video automatically replay add loop=1
  • To prevent the related videos from showing at the end add rel=0

Resources for more info: YouTube Embedded Players and Player Parameters