- This topic has 8 replies, 2 voices, and was last updated 4 years, 5 months ago by
Leo.
-
AuthorPosts
-
December 16, 2018 at 4:03 am #758028
Tony
Hello.
I’m trying to do the following:
https://www.willpearson.co.uk/I have already followed the instructions below:
https://generatepress.com/forums/topic/keep-menus-visable-with-scroll/#post-54453I have two issues:
– My sticky menu won’t stick!
– I’m forcing the Beaver Builder slideshow to cover the whole screen, by using a negative number as a top row margin. (-60). The side effect is that the logo and tagline are then hidden behind the slideshow.My login credentials are the same as for the resolved case below:
#754481Thanks for your time.
Chris.
December 16, 2018 at 7:04 am #758202Tony
Hi again!
I ‘ve made progress. My navigation is now sticky after setting the following:
Customize > Layout > Sticky Navigation > ON
The remaining issues are:
– Logo and tagline are hidden behind the slideshow (or photo).
– The default navigation background color is transparent. When I start scrolling down I would like to have a #hex color or image as a background, in other words, doing this:
https://www.willpearson.co.uk/– After page load, when I scroll down, there is a tilt in the menu (note that there is also css in Customize > Additional CSS).
Thanks.
Chris.
December 16, 2018 at 9:21 am #758271Leo
StaffCustomer SupportHi there,
Have you tried the exact steps here?
https://docs.generatepress.com/article/navigation-as-a-header/#merge-with-header-elementsLooks like it’s exactly what you needed.
Let me know ๐
December 17, 2018 at 2:48 am #758835Tony
Hi Leo.
It is exactly what I need!
I have already followed the instructions you sent me and changed it.
There’s only one issue. I need the tagline below the logo and the following CSS which does that, doesn’t work anymore.Thanks.
Chris.
—
.inside-header {
display: grid;
grid-template-columns: 240px auto;
}
.site-logo {
grid-column: 1;
grid-row: 1;
margin-bottom: 0.3em;
}
.site-branding {
grid-column: 1;
grid-row: 2;
}
#site-navigation {
grid-column: 2;
grid-row: 1 / 3;
align-self: center;
}.main-navigation .main-nav ul li a {
padding-left: 5px;
padding-right: 20px;
line-height: 60px;
}
.main-navigation li {
float: right;
position: relative;
}December 17, 2018 at 4:37 am #758911Tony
I have also tried, as an alternative, to put a tag below the logo using a Hook in Elements, but the after_logo hook only works for the normal logo and not for the sticky one…
December 17, 2018 at 7:33 am #759180Leo
StaffCustomer SupportSo you want to add tagline to navigation logo?
If so try this method:
https://generatepress.com/forums/topic/how-i-add-tagline-below-logo-in-primary-nav/#post-623313December 18, 2018 at 2:29 am #759920Tony
Hi Leo.
I have put the code in functions.php.
It’s (almost) working.I can see the tagline when I start to scroll down but I cannot see it when I’m at the top of the page.
Thanks.
Chris.
December 18, 2018 at 7:35 am #760256Tony
Hi Leo.
It worked! The problem was an Element I created yesterday as I was trying to place the tagline below the logo. I removed the Element and now everything is fine.
Thanks very much for helping.
Chris.
December 18, 2018 at 9:49 am #760408Leo
StaffCustomer SupportNo problem ๐
-
AuthorPosts
- You must be logged in to reply to this topic.