Fitvids
Make embedded videos responsive using Fitvids.js
by Barry Ceelen · github.com/barryceelen/wp-fitvids · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/barryceelen/wp-fitvids/archive/refs/heads/master.zipDeclares an update source (https://github.com/barryceelen/wp-fitvids), so updates arrive through the plugin's own updater.
Readme
WordPress FitVids
A simple implementation of the wonderful Fitvids.js jQuery plugin to make videos embedded in posts responsive.
Currently targets videos contained inside an element with the .hentry class.
You can add and remove target classes by adding a filter to plugin_fitvids_selectors.
add_filter( 'plugin_fitvids_selectors', 'prefix_my_cool_filter_function' );
function prefix_my_cool_filter_function( $targets ) {
$targets[] = '.yay-an-element-containing-videos';
return $targets;
}