April 27, 2018 at 11:26 am
#947849
Hey Slade,
If you have more logos you would like to add, you can add more “if” statements like:
add_filter('avf_logo','av_change_logo');
function av_change_logo($logo)
{
if(is_page(626) )
{
$logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
}
if(is_page(632) )
{
$logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo2.png";
}
return $logo;
}
Or if you want to use the same logo on more pages, you can add more pages using an array like this:
add_filter('avf_logo','av_change_logo');
function av_change_logo($logo)
{
if(is_page( array(626, 632) ) )
{
$logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
}
return $logo;
}
Best regards,
Mike