Site logo

[Resolved] Logo color

Home Forums Support [Resolved] Logo color

Home Forums Support Logo color

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2493659
    Jusung

    I am using logo image on the header.

    I have 2 files, which are black and white.

    On the front page, it shows white logo, but in other page, I wanna show black color logo.
    Also, on the sticky menu, I need to show black log.

    Is there a way to set the different logo color?
    I have it as a file.

    #2493701
    Jusung

    This is what I added
    The post page ID is 80, So, put 80 and On the return URL, I used the file url in the media.
    However It doesn’t work. Also, I can I set this for stick menu..?

    add_filter( ‘generate_logo’, function( $logo ) {
    // Return our category logo URL
    if ( is_page( 80 ) ) {
    return ‘URL’;
    }

    // Otherwise, return our default logo
    return $logo;
    } );

    #2493702
    Fernando
    Customer Support

    Hi Jusung,

    For the Sticky Nav logo, you can add a different logo through Appearance > Customize > Layout > Sticky Navigation.

    For the logo on other Pages, you can utilize a Header Element. You can add a logo there. Reference: https://docs.generatepress.com/article/header-element-overview/#site-header

    Make sure to setup the Display rule location to your preference.

    There’s no way to set a different logo color unless your logo is an SVG. You need to upload a different logo.

    If you want to use a filter, you can use this: https://docs.generatepress.com/article/generate_logo_output/

    #2493704
    Jusung

    I just changed the setting.

    I made the default logo is black
    and using filter, I set white logo on the front page.
    However, on the sticky meny on the front page, I am seeing white logo.
    I wanna see the black logo on the sticky meny on the front page.

    #2493717
    Jusung

    Thank you!! everything works well now!!

    I used filter!

    #2493722
    Fernando
    Customer Support

    You’re welcome, Jusung!

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