Description

By using filter cvm_video_embed_css_class you can add extra CSS classes to the video container div element. By doing so, you will be able to style the element from your theme stylesheet.

Parameters

$css_classes
(array)(required) An array of CSS classes

Default:None
$post
(object)(required) The post object being displayed

Default:None

Examples

Add extra CSS classes to all videos embedded by the plugin.

function add_css_class( $css_classes ){
    $css_classes[] = 'my-extra-class';
    return $css_classes;
}
add_filter( 'cvm_video_embed_css_class', 'add_css_class' );

Related