- This topic has 12 replies, 3 voices, and was last updated 8 years ago by
Leo.
-
AuthorPosts
-
March 8, 2018 at 3:50 am #514552
Jessica
First of all thank you for this great theme! It’s my first time using it and am loving the flexibility it gives a non-coder designer like me to build a site from scratch.
I have a sticky nav bar with a logo top left. I would like my logo to stick out from the nav bar and you will see I’ve pretty much got the desired effect on desktop (eyeswi.de – site is password protected – pw: ninajess).
It looks great when nav bar is stuck at the top, my problem is when you scroll down the page you still notice the bottom of the logo in the top left. I managed to solve this problem on desktop by shrinking the logo using this:
.main-navigation.is_stuck .sticky-logo,
.main-navigation.is_stuck .sticky-logo img {
height:62px !important;
margin-bottom:-1px;
}But I can’t seem to work out the selector to target the same thing on mobile. Can you help me with finding this?
Also, although this works, it’s not entirely the desired effect I had in mind… I would prefer to keep the logo at the same size the whole time, and always protruding from the nav bar but I can’t for the life of me work this out. Is there a way to achieve this for both mobile and desktop?
Thanks a mil ๐
March 8, 2018 at 5:27 am #514595dasigna
thats a little tough one!
tried to figure out a similar thing recently, only with sticking out logo at the top. but bottom seems to be a step further though ๐not finished yet, but first you have to tweak two things:
– mobile navigation
– sticky navigationimho theres no way to get over this if you simply let the logo stick out beneath (because it simply exeeds the nav-container height amount which is hidden on sticky scroll down). seems you have to fiddle a way to adjust the height of the navigation container and tweak it by using a partly transparent png as nav-background.
thats the solution ive found so far.
but of course there might be a better solution only by pure css – in which i might be interested too.March 8, 2018 at 9:01 am #514849Leo
StaffCustomer SupportHi there,
Are you looking for this effect here? https://docs.generatepress.com/article/navigation-logo/#float-navigation-logo-outside-container
If not can you link us to your site or provide the password to unlock it?
Only admins (myself and Tom) can see the link ๐
Let me know.
March 8, 2018 at 9:02 am #514851Jessica
Hi Leo,
No I already have this effect. What I’m looking for happens on scroll down. Please do check my URL.
Thanks ๐March 8, 2018 at 11:29 am #514996Leo
StaffCustomer SupportI did check but it’s password protected ๐
March 8, 2018 at 1:12 pm #515068Jessica
Doh. I did mention this in my initial query…
(eyeswi.de โ site is password protected โ pw: ninajess).
ThanksMarch 8, 2018 at 6:04 pm #515192Leo
StaffCustomer SupportSorry I missed that. Now I’m confused though. So you want the logo to always look like this?
http://www.screencast.com/t/1kvmAaum9LThen removing this extra CSS you’ve added should work:
.main-navigation.is_stuck .sticky-logo, .main-navigation.is_stuck .sticky-logo img { height:62px !important; margin-bottom:-1px; }Let me know what I’m missing ๐
March 9, 2018 at 12:32 am #515368Jessica
Thanks I have tried that and the CSS in
https://docs.generatepress.com/article/navigation-logo/#float-navigation-logo-outside-container
but that doesn’t work.
My problem is with the logo protruding from stickynav. I guess I can live with the way I have made it on desktop as this whole conversation going round in circles…
Can you please just tell me the selector to target the logo on mobile, when the stickynav is hidden?
Thanks,
JessMarch 9, 2018 at 9:04 am #515722Leo
StaffCustomer SupportTry this:
.mobile-header-navigation:not(.navigation-stick) .mobile-header-logo imgMarch 10, 2018 at 3:17 am #516229Jessica
Thanks, but I’m afraid that’s just targeted the logo in it’s default position not when I scroll down… Here’s a screengrab what i’m trying to get rid of…
March 10, 2018 at 7:14 am #516426Leo
StaffCustomer SupportWhat if you change this CSS:
.mobile-header-navigation .mobile-header-logo img { height: 84px !important; z-index: 100; padding: 0 !important; margin-bottom: -24px; }With this selector?
.mobile-header-navigation:not(.navigation-stick) .mobile-header-logo imgMarch 11, 2018 at 7:56 am #516999Jessica
Thank you
March 11, 2018 at 8:49 am #517052Leo
StaffCustomer SupportNo problem!
-
AuthorPosts
- You must be logged in to reply to this topic.