A group for MLA Commons members to ask questions about how the platform works and to get support with any problems on the site. Helpfulness is the currency of this particular realm! (Help image courtesy of the Flickr user Liminal Mike.)

Embedding YouTube Videos

Tagged: , ,

2 replies, 2 voices Last updated by  George H. Williams 6 years, 5 months ago
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1073

    George H. Williams
    Participant
    @georgeonline

    Please allow us to embed videos. Currently neither the <iframe> (See 1 below) or <object> (See 2 below) method of embedding seem to work in the MLA Commons WP blogs:

    (1)

    <iframe width=”640″ height=”360″ src=”http://www.youtube.com/embed/wQUrVlT4B-c?rel=0″ frameborder=”0″ allowfullscreen></iframe>

    (2)

    <object width=”640″ height=”360″><param name=”movie” value=”http://www.youtube.com/v/wQUrVlT4B-c?hl=en_US&amp;version=3&amp;rel=0″></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/wQUrVlT4B-c?hl=en_US&amp;version=3&amp;rel=0″ type=”application/x-shockwave-flash” width=”640″ height=”360″ allowscriptaccess=”always” allowfullscreen=”true”></embed></object>

    #1090

    MLA Commons
    Participant
    @mlaadmin

    Hi George,

    Because MLA Commons is a multisite WordPress install, there are certain user behaviors that could end up being detrimental to everyone. Unfortunately, <embed>s, <object>s, and <iframe>s fall into this category. This is the case even for the big boys like WordPress.com, which also restricts their use.

    Luckily, there is a workaround. Instead of full embeds, WordPress allows for shortcodes to embed media for many popular media sites. The hands-down easiest way is to simply paste in the URL from a supported media site; WordPress takes care of the rest:

    The above video was embedded by putting the following URL by itself on its own line, e.g.:
    http://www.youtube.com/watch?v=wQUrVlT4B-c

    The shortlink version also works, e.g.:
    http://youtu.be/wQUrVlT4B-c

    There are additional shorthand methods to provide parameters to the embed. For more information, visit the shortcodes page linked above.

    #1093

    George H. Williams
    Participant
    @georgeonline

    Very helpful! Thank you, Chris.

Viewing 3 posts - 1 through 3 (of 3 total)

Only members can participate in this group's discussions.