How do I remove Video embed rules?

Posted in: Newspaper
Post count: 57

Hello. As far as I understand, embedded videos stick to some rules, that I do not need (size, alignment). Where are these rules and how can I remove them? I want to embed everything on my own, with my own html codes, thumbs, etc.

And question 2 is just a query. On some sites, I see that youtube videos have no ads, although it is there when I embed same video on my site. So there is DEFINITELY some script or plugin out there that blocks the ads for embedded videos. May be you know one?

Post count: 6600

Hi,

1. Use this CSS for the video issue:

.wpb_video_wrapper iframe {
width: auto !important;
}

Add it in Theme Panel > Custom CSS.
About the thumbnail, can you please give me an example?

2. Unfortunately I don’t know any plugin that helps you to get rid of the ad, those ads are set to be displayed by video owner.

Post count: 57

I want to have control over embedded videos. For example, make them smaller – 540 px, for instance. Now, no matter what size I chose, they are always the same. How can I change that? Is it .wpb_video_wrapper class? How can I clear it?

Post count: 57

And it happens only with youtube and vimeo videos, the others are being embed just fine – the width I need, the styles I need, the borders I need. So how can I remove youtube and vimeo styles from the theme?

Post count: 6600

Hi,

Please remove or comment this code inside site.js file like this http://screencast.com/t/Opp3iwiRpkT

Also please remove this CSS:

.wpb_video_wrapper iframe {
width: auto !important;
}

…from Theme Panel you don’t need it anymore.

Sorry about this, should work fine now.
Thanks

Post count: 57

YES! This is EXACTLY what I need. Thanks a lot!

Post count: 57

Same problem again with an update. There is no more site.js, but same code is found in td_site.js. The problem is that the hack described here http://screencast.com/t/Opp3iwiRpkT
doesn’t work anymore. I removed piece of code for youtube and vimeo, but the videos are still being resized. So I assume some other code is involved?

Update: Nevermind. Found it.

  • This reply was modified 12 years by dan21.
  • This reply was modified 12 years by dan21.
Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.