- This topic has 30 replies, 2 voices, and was last updated 4 years, 11 months ago by
Leo.
-
AuthorPosts
-
November 19, 2020 at 7:51 pm #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 = ‘Your Title Here‘;
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
November 19, 2020 at 7:58 pm #1538378Leo
StaffCustomer SupportHi 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 🙂
November 19, 2020 at 8:07 pm #1538381Sima
Thank Leo. I do not want to use navigation as a header.
November 19, 2020 at 8:14 pm #1538385Sima
Can you please help me with the actual question? I would like the exact solution as I have stated.
thank youNovember 19, 2020 at 8:14 pm #1538386Leo
StaffCustomer SupportAny chance you can link us to the site in question?
You can use the private information field.
Let me know 🙂
November 19, 2020 at 8:17 pm #1538387Sima
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 🙂
November 19, 2020 at 8:17 pm #1538388Sima
here is the info.
November 19, 2020 at 8:22 pm #1538390Leo
StaffCustomer SupportI 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.
November 19, 2020 at 8:24 pm #1538393Sima
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/November 20, 2020 at 9:03 am #1539191Leo
StaffCustomer SupportThat topic is old though.
If you use the navigation as a header option then the site title should remain in the sticky navigation.
November 20, 2020 at 9:38 am #1539230Sima
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?
November 20, 2020 at 10:10 am #1539267Leo
StaffCustomer SupportSo 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-1138542Adding 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/
November 20, 2020 at 2:27 pm #1539477Sima
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.November 20, 2020 at 3:04 pm #1539506Leo
StaffCustomer SupportI’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-adminpage.Can you confirm?
November 20, 2020 at 3:10 pm #1539511Sima
please try again.
-
AuthorPosts
- The topic ‘how to display site header in sticky header’ is closed to new replies.