Skip to content

barryceelen/wp-fitvids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;
}

About

Make embedded videos responsive using Fitvids.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published