Removing Youtube embed title in WordPress automatically

November 11, 2012 12:04 pm 4 comments

It’s easy to find how to remove the initial title and controls in your youtube embeds. You just need to append

to the youtube url. WordPress has a nice feature that embeds video links automatically, so you don’t need to handle messed html code, but that embed show the video title too.

To make WordPress to embed a youtube video without the title add this function to your theme’s functions.php file

The rel=0 attribute removes the related videos when the player stops. Enjoy!


Let’s push your website a bit further

My name is Javier Márquez and I have more than 10 years of web programming and web designing experience. If you have a difficult development to complete, maybe you can stop by and see what I can do for you. You can find me on and Twitter.

Leave a reply

contact meAnything related to web development like javascript and CSS to create responsive designs, or PHP and node.js to make your website work properly, is my pleasure. If you have an interesting project in mind, I can help to make it real.