How would I add more pages to logo img2, so where it says contact I would like to add more pages including (contact) to use only img2
add_filter(‘avf_logo’,’av_change_logo_url’);
function av_change_logo_url($url)
{
if( is_front_page() )
{
$url = “http://link.to/img.png”;
}
if( is_page(‘contact’) )
{
$url = “http://link.to/img2.png”;
}
return $url;
}
Hi blonddragon!
I’m guessing you want to display a different logo on certain pages, is your code not working?
Best regards,
Rikard
How do I add more pages to this if( is_page(‘contact’) )? basically home page will have one logo and all the other pages will have a different same logo.
Hi!
Please add following code to Functions.php file instead
add_filter('avf_logo','av_change_logo');
function av_change_logo($logo)
{
if(is_home() )
{
$logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
}
return $logo;
}
Logo for home will be different and the same for other pages.
Regards,
Yigit