Hi
I did the following successfully in the past, maybe I am doing something wrong this time.
Goal is to have a different logo for specific pages.
// Decide when to display the positive or negative logo
add_filter( 'generate_logo','mh_custom_about_logo' );
function mh_custom_about_logo( $logo )
{
// If we are on the feed page, set our custom logo
if ( is_page( 'feed-2' ) )
return '/wp-content/uploads/2022/07/custom-logo.png';
// Or else, set the regular logo
return $logo;
}
But it does not work for some reason – do you see the issue?
Thanks a lot,
Michael