You are viewing an old revision of this post, from March 16, 2015 @ 11:44:52. See below for differences between this version and the current revision.

Modify Youtube Oembed URLs

Expanded from here. There are different methods for modifying Youtube’s iframe url to get the look and feel you want for your embedded youtube video. WordPress offers Oembed functionality which makes it easy for WordPress users to input youtube urls into metaboxes, content, etc. What is not as straight forward is altering the appearance that WordPress’s Oembed outputs. Changing WordPress’s Oembed iframe URL parameters can be quite cumbersome for some. It’s important to be able to remove and modify some of the default settings of the youtube iframes. Ie: the titles using youtube api’s showinfo attribute. With oembeds, you can’t simply change the output of the iframe URL by pasting in the showinfo and rel attributes at the end of your WordPress content or metabox’s URL slug. To make these changes, you can add this code snippet to your functions.php file or a plugin:    

Revisions

  • March 16, 2015 @ 11:44:52 [Current Revision] by PeterLugg
  • March 16, 2015 @ 11:44:52 by PeterLugg

Revision Differences

There are no differences between the March 16, 2015 @ 11:44:52 revision and the current revision. (Maybe only post meta information was changed.)

Tags: , ,

No comments yet.

Leave a Reply