Embed youtube video in wordpress site

The fol­low­ing tem­plate allows you to do the following:

  • Embed a youtube video into Word­Press site, which uses mark­down in its posts.
  • Allows you the size the video’s dimensions.

Notes:

  • Remove extra space after the open­ing bracket and before the clos­ing 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 fol­low­ing video to under­stand this con­cept in more detail!

You may also like...