Site logo

[Resolved] how to display site header in sticky header

Home Forums Support [Resolved] how to display site header in sticky header

Home Forums Support how to display site header in sticky header

Viewing 15 posts - 1 through 15 (of 31 total)
  • Author
    Posts
  • #1538371
    Sima

    I would like to have my site title on the sticky header. Based on the information I found in this case:
    https://generatepress.com/forums/topic/site-title-disappears-on-sticky-header-navigation/

    1. I created a snippet with the following code:
    add_filter( ‘generate_sticky_navigation_logo_output’, function( $output ) {
    $title = ‘

    ‘;

    return $output . $title;
    } );
    2. saved it with the option of ” Run snippet everywhere” but it does not work.

    Could you please let me know what else needs to be done?

    thank you

    #1538378
    Leo
    Staff
    Customer Support

    Hi there,

    Can you try is this option does the job for you?
    https://docs.generatepress.com/article/navigation-as-a-header/

    If not any chance you can link us to the site in question?

    You can use the private information field.

    Let me know 🙂

    #1538381
    Sima

    Thank Leo. I do not want to use navigation as a header.

    #1538385
    Sima

    Can you please help me with the actual question? I would like the exact solution as I have stated.
    thank you

    #1538386
    Leo
    Staff
    Customer Support

    Any chance you can link us to the site in question?

    You can use the private information field.

    Let me know 🙂

    #1538387
    Sima

    I have sent you the requested info. while looking at this issue, could you please let me know how to change my sticky menu alight to the right instead of current which is left? thank you 🙂

    #1538388
    Sima

    here is the info.

    #1538390
    Leo
    Staff
    Customer Support

    I do not want to use navigation as a header.

    Is there a reason for that? That option is designed to create the layout you have currently.

    #1538393
    Sima

    just a preference. If you have to know, it is for the same reason mentioned here:
    https://generatepress.com/forums/topic/site-title-disappears-on-sticky-header-navigation/

    #1539191
    Leo
    Staff
    Customer Support

    That topic is old though.

    If you use the navigation as a header option then the site title should remain in the sticky navigation.

    #1539230
    Sima

    If I use sticky navigation, Tagline disappeared and I do not like the look. Now the question is would you be able to help me?

    #1539267
    Leo
    Staff
    Customer Support

    So activate the navigation as a header option, and add the tagline in with this PHP snippet:
    https://generatepress.com/forums/topic/site-title-and-site-description-when-i-use-navigation-as-header-and-mobile-on/#post-1138542

    Adding PHP: https://docs.generatepress.com/article/adding-php/

    Then hide it in sticky navigation with this CSS:

    .main-navigation.navigation-stick .site-description {
        display: none;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #1539477
    Sima

    The problem with this is that:
    1. the tagline shows in the same line as the site title.
    2. How can I change the title’s color to black when scrolling down.

    #1539506
    Leo
    Staff
    Customer Support

    I’m not able to see the issue as the page is under coming soon page.

    I also tried your login info but couldn’t log in using the /wp-admin page.

    Can you confirm?

    #1539511
    Sima

    please try again.

Viewing 15 posts - 1 through 15 (of 31 total)
  • The topic ‘how to display site header in sticky header’ is closed to new replies.