I'm looking for a way to force all video content on my site to scale to 100% width and I'm hoping to avoid using any additional javascript.

Is there a filter or function that I can use to accomplish this? If so how is it used? And I do not want a plugin!

1 Answer 1


Without knowing more information - you can use CSS to set a max width to any element.

iframe, object, embed {

Rachel Baker mentioned Fitvids.JS in her WordCamp Chicago presentation last weekend. It is a Javascript plugin that writes specific code for the various video providers online.

Try the CSS solution and fall back to JS if you can't figure it out.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.