Embedding a Youtube video the right way in Customizr

⚠️ Code snippets might not be compatible with the latest version of your theme. Always use a child theme to customize your theme, and test your code on a staging website before migrating to production.

Following a discussion on the WordPress Forum about how to embed videos in Customizr, here’s a quick snippet.

In WordPress, if you just copy and paste the url of a video in a post, it will be automatically ‘recognized’ and the video will be displayed.

But what if you want to set the dimensions of the video wrapper?

To do that, you can use the WordPress built-in shortcode  video url  , like in the following example :


Thanks to @lisa , @Jan Dembowski@tomaja for their contributions in the forum



Leave a comment

Your email address will not be published. Required fields are marked *

29 thoughts on “Embedding a Youtube video the right way in Customizr”