Archived topic
Changing the logo in the sticky menu of a single page
3 replies · Started by Stefano on March 26, 2020
Hi, everybody!
I wanted to know if it is possible to replace the main logo with a different logo on a single page.
On the file functions I put this and it works correctly!
add_filter( 'generate_logo', 'tu_change_logo', 'generate_navigation_logo' );
function tu_change_logo( $logo )
{
if ( is_page( 67 ) ) :
return 'url media';
endif;
// Return the default logo otherwise
return $logo;
}
I'm missing one last step :)
How do I replace the logo on the sticky menu?
Thanks for your answer
Stefano
Hi there,
Any chance you can link me to the page in question?
We might be able to just use a header element as a workaround.
Let me know :)
Here's the page:
https://partinicoworking.com/medical/
:)
Actually I believe this is the filter you are looking for:
https://docs.generatepress.com/article/generate_navigation_logo/