• 0

Embed youtube video in wordpress site

The following template allows you to do the following:

  • Embed a youtube video into WordPress site, which uses markdown in its posts.
  • Allows you the size the video's dimensions.

Notes:

  • Remove extra space after the opening bracket and before the closing bracket.
  • Use the watch url from youtube with video id.
<div style="margin-bottom:20px; text-align:center; font-weight: bold">
    Watch the following video to understand this concept in more detail!
</div>

<div style="width: 560px; height: 315px; margin: auto;">
    [ youtube https://www.youtube.com/watch?v=WFPIvxV7Q8Q ]
</div>

Watch the following video to understand this concept in more detail!
[youtube https://www.youtube.com/watch?v=WFPIvxV7Q8Q]