- This topic has 7 replies, 2 voices, and was last updated 5 years, 7 months ago by David.
-
AuthorPosts
-
September 9, 2018 at 12:34 am #672319muralidharan
Hi
I seem to have an issue with scrolling of my site title ( it is not sticky) . while the primary menu is visible while i scroll down my site title ‘enright public relations’ becomes invisible while you scroll down. thought it worked earlier, now it doesnt seem to work.
here it the link to the website http://www.enrightpr.in
You will notice when you scroll down the navigation menu’s are shown but the site title is invisible.
hope you will help
thanks
muralidharanSeptember 9, 2018 at 4:18 am #672394DavidStaffCustomer SupportHi there,
how were you adding the Site Title to the Navigation?
September 10, 2018 at 7:09 am #673223muralidharanHello David
I added site title using the customization feature. It is independent of the navigation.
what I am trying to achieve is when I scroll down, I would like to see alongside my primary navigation menu, my site title ‘enright public relations’ which is towards the left of the nagivation menu.
pls advise
thanks
muralidharanSeptember 10, 2018 at 8:21 am #673381DavidStaffCustomer SupportSo lets try this:
Create a new Hook Element, and add this content:
<div class="site-branding sticky-brand"> <p class="main-title" itemprop="headline"> <a href="http://www.enrightpr.in/" rel="home">enRight Public Relations</a> </p> </div>
Select the inside_navigation hook and set the display rules to the entire site.
Then a little CSS to hide it on static navigation, and to align the nav:
.site-navigation:is_stuck .inside-navigation { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .main-navigation:not(.is_stuck) .sticky-brand { display: none; }
September 12, 2018 at 7:21 am #675404muralidharanHi David, I am not a developer 🙁 In the GP hooks menu i do not find inside navigation hook) so where do i find them? right now i see the gp hooks under the elements button. May be a link to this process will help.
Is there a way we can achieve this using the Custom CSS
On a quick note in the CSS i also found
(id or class)(whatever the div name it is) {
display: none;
}i find error expected token. Dont know it appears now, as we keep updating we dont realise these changes:)
hoping to hear from you.
thanks so much
September 12, 2018 at 7:46 am #675426DavidStaffCustomer SupportHi there,
make sure the GP Premium plugin is up to date. And then go to Appearance > GeneratePress and activate the elements module which will appear in the Appearance menu:
https://docs.generatepress.com/article/hooks-element-overview/
September 12, 2018 at 7:57 am #675516muralidharanHi David found the tutorial helpful. Now I have done the first two steps
created a new hook
display rule to entire site
and then where do I add the CSS? in the custom CSS? on within the GP Hooks area?
this one….site-navigation:is_stuck .inside-navigation {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.main-navigation:not(.is_stuck) .sticky-brand {
display: none;
}thanks
September 12, 2018 at 8:25 am #675538DavidStaffCustomer Support -
AuthorPosts
- You must be logged in to reply to this topic.