Archived topic
how to display site header in sticky header
30 replies · Started by Sima on November 19, 2020
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
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 :)
Thank Leo. I do not want to use navigation as a header.
Can you please help me with the actual question? I would like the exact solution as I have stated.
thank you
Any chance you can link us to the site in question?
You can use the private information field.
Let me know :)
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 :)
here is the info.
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.
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/
That topic is old though.
If you use the navigation as a header option then the site title should remain in the sticky navigation.
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?
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/
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.
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?
please try again.