This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Reply To: Problems embedding local video using video tag

#741
Jason Bobich
Keymaster

Hello,

The reason is because the video and source tags aren’t part of WordPress’s global $allowedtags array. When the theme sanitizes the options before saving there are also some additional filters attached you can utilize. Here is an example of how you’d add in your tags from your Child theme’s functions.php:

function my_allowed_tags( $tags ){
	$tags['video'] = array(
		'width'		=> array(),
		'height'	=> array(),
		'poster'	=> array(),
		'controls'	=> array()
	);
	$tags['source'] = array(
		'src'		=> array(),
		'type'		=> array()
	);
	return $tags;
}
add_filter( 'themeblvd_allowed_tags', 'my_allowed_tags' );