Home Forums Travel WordPress Theme Theme does not work and site is down! Reply To: Theme does not work and site is down!

#2972

Johnny
Participant

Hi, please open file functions.php and find this:

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

update it 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