- This topic has 14 replies, 2 voices, and was last updated 4 years, 4 months ago by
Leo.
-
AuthorPosts
-
January 2, 2019 at 10:55 am #771375
Nimie
I have this
@media (min-width: 769px){
.main-navigation:not(.navigation-stick) .sticky-logo {
position: absolute;
top: -55px;
left: 0;
z-index: 500;
}body .main-navigation:not(.navigation-stick) .sticky-logo,
body .main-navigation:not(.navigation-stick) .sticky-logo img {
height: 250px;
}
}
And it works great except for the navigation logo being so small on scroll and on mobile. I know the logo size is determined by the height of the nav bar but would like the logo to be bigger than nav bar if possible.January 2, 2019 at 12:35 pm #771432Leo
StaffCustomer SupportHi there,
Looks like you CSS is excluding the sticky navigation specifically:
:not(.navigation-stick)
Try removing that part.
January 2, 2019 at 12:49 pm #771441Nimie
That didn’t do it.
January 2, 2019 at 2:09 pm #771493Leo
StaffCustomer SupportWhere did you get the code from?
Can you try this first?
https://docs.generatepress.com/article/navigation-logo/#float-navigation-logo-outside-containerJanuary 2, 2019 at 2:24 pm #771500Nimie
From Tom.
January 2, 2019 at 2:35 pm #771504Nimie
Nope didn’t work. The code I have displays a large logo over the nav and then on the scroll the logo shrinks, but then it is too small to be seen well. The only way I can make it larger is to make the nav menu larger and that really doesn’t look good. I need to make just the logo on the nav bar bigger after the scroll but not as large as before the scroll which is 250px. If you take a look at the site you will see what I mean.
January 2, 2019 at 4:38 pm #771574Leo
StaffCustomer SupportAhh so you need the logo to shrink but still outside the container?
If so try this for the full CSS:
@media (min-width: 769px){ .main-navigation .sticky-logo { position: absolute; top: -55px; left: 0; z-index: 100; } .main-navigation.navigation-stick .site-logo { top: 0; } body .main-navigation:not(.navigation-stick) .sticky-logo, body .main-navigation:not(.navigation-stick) .sticky-logo img { height: 250px; } body .main-navigation.navigation-stick .sticky-logo, body .main-navigation.navigation-stick .sticky-logo img { height: 200px; } }
January 3, 2019 at 4:39 am #771871Nimie
That resized the logo better but the nav bar was also 200px. Need same logo effect with the nav bar remaining normal size. Logo needs to overhang the nav bar after scroll.
January 3, 2019 at 7:34 am #772139Leo
StaffCustomer SupportCan you apply the CSS so I can see the issue?
January 3, 2019 at 7:38 am #772150Nimie
Done. Need to also make sure the mobile version is larger without making the nav bar huge. If we can’t resolve the desktop issue need to at least resolve the tablet and mobile.
January 3, 2019 at 1:05 pm #772461Leo
StaffCustomer SupportJanuary 3, 2019 at 1:25 pm #772468Nimie
Close. It made the logo larger after the scroll but the top half is hidden. Also did nothing to resize on mobile which is the most important.
January 3, 2019 at 5:50 pm #772600Leo
StaffCustomer SupportI guess you need to re-position it since it’s smaller:
https://generatepress.com/forums/topic/need-sticky-navigation-logo-to-remain-larger/#post-771574What’s wrong with mobile? the code shouldn’t affect the mobile at all.
Checked on my phone and it looks good?January 4, 2019 at 5:34 am #772842Nimie
They want logo larger on mobile. Made the adjustment and desktop is great.
January 4, 2019 at 10:40 am #773213Leo
StaffCustomer SupportSo that’s controlled by the menu item height with mobile toggle:
https://docs.generatepress.com/article/menu-item-height-width/We can also remove the padding around the logo as well:
@media (max-width: 768px) { .main-navigation .navigation-logo img { padding: 0; } }
-
AuthorPosts
- You must be logged in to reply to this topic.