Hello,
I have a function that will change the logo to a different logo on certain page IDs – now I wanna achieve the same for blog posts of certain categories.
I used the following code:
add_filter('avf_logo','av_change_logo');
function av_change_logo($logo)
{
if( is_page(ID) ) {
$logo = "URL_to_logo.png";
} elseif ( is_page(anotherID) ) {
$logo = "URL_to_logo.png";
}
return $logo;
}
What do I ad?
Thank you!
Resolved:
elseif ( the_category_ID(ID) ) {
$logo = "URL_to_logo.png";
}
Hi fabienneRedUmb,
We’re glad that you were able to resolve it and thanks for sharing the solution :)
Best regards,
Nikko