When you check the embed code of a video on youtube, you see it has a frameborder attribute on the iframe, and it’s set to 0. This is to prevent the iframe from having a border. The inline style this plugin provides is not enough to prevent the border from showing on all browsers.
Please add frameborder=”0″ to line 336 of generate-embed-code.php and I will be a happy camper.
Consider it added to the next release!
So now that we’re talking features.. 🙂
Could you please add an option to remove the video title as well? Just add &showinfo=0 to the query string to prevent the title from showing.
There already is that option 😉 Simply add info=no to the parameter string.
But where can I edit the parameter string in the plugin options? I mean, I don’t want my blog authors to have to start adding parameters to the youtube embed code.
I don’t think I will be able to explain to them how and why they have to add parameters, if you know what I mean 😉
You can set the parameter on a video-by-video basis or, like any other parameter, it can be set to a default in the Profiles section of the administration screen.
I’ve found the problem. In the options in the profiles section you can set:
“Information – Display the video title and uploader before the video starts”
When checked “&showinfo=1” is added to the embed parameter string. However youtube defaults to showing the title, so unchecking this option will also show the title, because then the parameter is not added.
The easiest solution would be to change the text in the profiles section to:
“Information – Hide the video title and uploader before the video starts”
And on line 274 (generate-embed-code.php) change to showinfo=0
- The topic ‘Frame border in IE7 8 please add correct iframe embed code’ is closed to new replies.