Hi,
I’m using the code below to give pages a different logo, but it doesn’t seem to work for portfolio-items. Any suggestions?
if( is_page(‘Seiran’) )
{
$url = “/wp-content/uploads/2015/12/logo_maia_ligfietsen.png”;
}
site: maialigfiets.nl
Hi Roderick!
Please add following code to Functions.php file in Appearance > Editor
add_filter('avf_logo','av_change_logo');
function av_change_logo($logo)
{
if(is_singular( 'portfolio' ))
{
$logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
}
return $logo;
}
Best regards,
Yigit
Hi thanks! is it also possible to do a logo for each seperate portfolio item or a category?
Hi!
Yes that would be possible as well by altering the code. Could you please post the link to your pages where you would like to use different logo?
Best regards,
Yigit
http://maialigfiets.nl/portfolio-item/hase-pino/ this should have the purple logo which worked great with your code, but we will also be adding other portfolio items later on that will have another logo
Hey!
Please add following code to Functions.php file as well
add_filter('avf_logo','av_change_logo_single');
function av_change_logo_single($logo)
{
if(is_singular( 'portfolio' ) && is_single( '4313' ) )
{
$logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
}
return $logo;
}
Cheers!
Yigit
FYI
This doesn’t work if you have “Header Transparency Logo” set: it seems to override this.
Turn it off and this code works like a charm.
Hi!
Cool, happy it worked for you.
Please feel free to let us know if you need anything else from us.
Please also remember to rate Enfold, at themeforest.
It really helps us out.
Thank you very much
Regards,
Basilis