Tagged: different logo, transparent header
Hello,
I want a different logo on a page and all portfolio items.
I get to work with the normal header but if transparency is on it works for the sticky header when you scroll but not for the transparent header see: https://www.zinkwaliteitsborging.nl/cursus/kwaliteitsborging-bouwplantoetsing-3/
code i used:
add_filter('avf_logo','av_change_logo_img');
function av_change_logo_img($img)
{
if( is_page('1005973') )
{
$img = "https://www.zinkwaliteitsborging.nl/wp-content/uploads/2023/01/Academy-logo.svg";
}
if(is_singular('portfolio'))
{
$img = "https://www.zinkwaliteitsborging.nl/wp-content/uploads/2023/01/Academy-logo.png";
}
return $img;
}
ps. I used a svg and png logo result is the same
Hi Tim,
I have answered your previous thread with the same title.
I will close this thread and continue the conversation on the other thread :)
Best regards,
Nikko