[Support request] Changing the logo in the sticky menu of a single page

Home Forums Support [Support request] Changing the logo in the sticky menu of a single page

Home Forums Support Changing the logo in the sticky menu of a single page

  • This topic has 3 replies, 2 voices, and was last updated 4 years ago by Leo.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1210901
    Stefano

    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

    #1210961
    Leo
    Staff
    Customer Support

    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 πŸ™‚

    #1210964
    Stefano

    Here’s the page:
    https://partinicoworking.com/medical/

    πŸ™‚

    #1210974
    Leo
    Staff
    Customer Support

    Actually I believe this is the filter you are looking for:
    https://docs.generatepress.com/article/generate_navigation_logo/

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.