How to make all videos responsive inside wordpress post

I see very often that many sites become non responsive because post has some youtube videos inside. This is problem, because, youtube player, by default, is not responsive. So, I will give you some code to fix this

Many themes has similar code which makes all videos responsive. But, sometimes there are no solutions in theme for this. So, you can use next code snippet

First of all, most of themes have area where you can add js script and css script. You should use it

Js code for responsive videos. Works with youtube, vimeo, dailymotion

Also, you need some css code for responsive videos

That’s all

How to make all videos responsive inside wordpress post
4.7 (93.33%) 3 votes

Want to get unique wordpress tips?

We won't rent or sell or spam your email. We promise!

Leave a Reply

avatar
  Subscribe  
Notify of