Starter Post - Media Embeds

Nov 24, 2014 • Manav Sehgal < 1 min to read • content

Starter Post - Media Embeds

You can embed YouTube video in a post using custom embed tag designed in Liquid markup.

Here is an example of a custom embed available as a configurable _include with OpenTheme. The size is parametrized as per theme. So if you turn on post bar then size is small, otherwise large. Features like player controls are configurable at site level, within _config.yml.

To embed a YouTube video you just need to copy the unique video id at the end of the video url.

Just add the following embed code.

  {% include embed-youtube.html video="eRsGyueVLvQ" %}

OpenTheme takes care of the rest for you including embed code, and width sizing based on theme configuration.