YouTube is the most popular video sharing platform. As everyone knows, they also lets us embed its videos on our websites. But just taking the embed code and pasting in our site is not enough. It's not responsive and adds a lot of unnecessary weight to our pages. Due to these issues, users are unlikely to play the videos and we risk them leaving our site.
In this tutorial I'll show you how to create a YouTube embed plugin which provides a shortcode to add YouTube videos responsively without increasing the weight of the page.
WordPress Default Embeds
WordPress by default, converts YouTube URLs into embed code (using oEmbed) in the post editor.
Continue reading %How to Create a YouTube Embed Plugin for WordPress%
by Narayan Prusty via SitePoint
No comments:
Post a Comment