cbc player max height

Description

Filter the maximum height of every player, set by the Fit in the window option (Settings, tab Embed options). The value is a CSS length; an empty string means the players are not limited in height. It applies to the videos embedded in posts, the video shortcode, the Post Video block, the Elementor widget and the vertical videos of the playlists. See Video embed options. Available since Video Hub 2.3.4.

Parameters

$max_height
(string)(required) CSS length, like 80vh or calc(100vh - 200px); empty for no limit.

Examples

Leave room for a fixed header that is 120 pixels high.

add_filter( 'cbc_player_max_height', function( $max_height ) {
    return 'calc(100vh - 120px)';
} );

Start importing in minutes

Bring your YouTube content into WordPress and let it update itself. Includes automatic updates and support.