Home Forums Travel WordPress Theme Activation of theme fails Reply To: Activation of theme fails

#3235

Johnny
Participant

Hi, please try update codes in functions.php:

function get_youtube_id($url)
{
	preg_match('#http://w?w?w?.?youtube.com/watch\?v=([A-Za-z0-9\-_]+)#s', $url, $matches);
	return $matches[1];
}

to:

if(!function_exists('get_youtube_id')){function get_youtube_id($url)
{
	preg_match('#http://w?w?w?.?youtube.com/watch\?v=([A-Za-z0-9\-_]+)#s', $url, $matches);
	return $matches[1];
}}

Best

Join Newsletter(FREE)

Subscribe to our newsletter to receive news & updates. We promise to not spam you, super promise!