- This topic has 15 replies, 2 voices, and was last updated 4 years, 5 months ago by David.
-
AuthorPosts
-
November 7, 2019 at 5:27 am #1055816Hashbeer
Hi,
I have added 2 buttons in mobile header using hook. But when scrolling some extra space before the button and not smooth. Can you please have a look.
Thanks in advance.
November 7, 2019 at 5:34 am #1055827DavidStaffCustomer SupportHi there,
so when scrolling do you want the two buttons to stick but no the Logo and Menu toggle?
November 7, 2019 at 5:44 am #1055837HashbeerYes, if possible. Preffered.
Or it is difficult we can remove sticking the button.
Buttons can be same behaviour as logo when scrolling (can hide)
November 7, 2019 at 5:51 am #1055840DavidStaffCustomer SupportHaving it stick separately to the logo/menu toggle would require JS and that would still be jumpy. But the inside-navigation container for the mobile header also uses flex so the
order
property will allow you to move the CTA. So this CSS:#mobile-header .call-to-action { position: fixed; margin-top: 3rem; display: flex; background: #fff; width: 100%; text-align: center; padding-top: 10px; padding-bottom: 10px; justify-content: center; z-index: 0; border-bottom: 1px solid #80808040; }
Change it to:
#mobile-header .call-to-action { order: 5; display: flex; background: #fff; width: 100%; text-align: center; padding-top: 10px; padding-bottom: 10px; justify-content: center; z-index: 0; border-bottom: 1px solid #80808040; }
November 7, 2019 at 6:52 pm #1056477HashbeerThank you. I have updated css. Now header jumb fixed.
But when scrolling, the page content now jump a little bit.
Is we need to adjust any other css?
November 8, 2019 at 2:04 am #1056642DavidStaffCustomer SupportCan you disable the autoptimize plugin so i can see whats going on
November 8, 2019 at 2:24 am #1056658HashbeerYes.
AutoOptimize – Disabled.
November 8, 2019 at 2:43 am #1056676DavidStaffCustomer SupportLooks like that cured the problem, may have to clear your browser caches to see it.
Now try re-enabling autoptimize it may have just been some scrambled CSS in the cache.
November 8, 2019 at 3:08 am #1056702HashbeerThank you for your response.
Tried to clear cache and re-enabled the cache plugin etc.
But still the page top is jumbing from top, on page scroll start.
While checking: this sample page don’t have that issue.
http://notarydev.farahatco.net/index.php/gp-transparent-header/
November 8, 2019 at 3:33 am #1056730HashbeerTried to update css slector from
#mobile-header .call-to-action
to
.call-to-action
Feeling now jumbing effect is less.
nav sticky-placeholder call-to-action class now gets the css effect.
Can you please have a look?
Thanks.
November 8, 2019 at 10:59 am #1057242DavidStaffCustomer SupportI think the issue is to do with the lazy loader.
Can you try disabling it.November 8, 2019 at 6:59 pm #1057462HashbeerDisabled and cache cleared.
Feeling still have small jumb.
November 9, 2019 at 5:44 am #1057644DavidStaffCustomer SupportStill a difference in height between the placeholder and the sticky nav.
Try this CSS:#mobile-header { min-height: 128px; }
May need to ‘tweak’ the height a little
November 9, 2019 at 8:55 am #1057984HashbeerThanks, It fixed jumbing issue.
But when scrolling down and then scrolling up, it shows 2 lines under nav bar.
Tried to adjust the min-height…
November 9, 2019 at 9:21 am #1058008HashbeerTried to add:
.is_stuck {
min-height: 111px;
}
I think, it fixes this issue.
Thank you
-
AuthorPosts
- You must be logged in to reply to this topic.