Thatβs all, save your changes and preview your site. You would need to re-size browser screen to see videos adjusting themselves accordingly.
Manually Add FitVids to Make Your Videos Responsive in WordPress
If you donβt want to install the FitVids for WordPress plugin, then you can add FitVids jQuery plugin manually. First thing you need to do is download and extractΒ FitVids jQuery pluginΒ to your computer. Now you need to upload the extractedΒ FitVids.js-masterΒ folder to your themeβs js directory.
You need to connect to your websiteΒ using an FTP clientΒ like Filezilla and open your theme directory. It is possible that your WordPress theme may not have a js folder. If it is not there, then you need to create one and then upload FitVids.js-master folder from your computer.
Inside the js folder, you need to create a new file and name itΒ FitVids.js. Edit this file and paste this code inside it.
Β Β $(document).ready(function(){
Β Β Β Β // Target your .container, .wrapper, .post, etc.
Β Β Β Β $(“.post”).fitVids();
Β Β });
Β Β Β
Β Β })(jQuery);
Once you do that, youβre done. You have successfully made your WordPress videos responsive.
We hope that you found this article useful. For feedback and questions please feel free to leave a comment below or join us onΒ TwitterΒ andΒ Google+.