- This topic has 14 replies, 3 voices, and was last updated 5 years ago by
David.
-
AuthorPosts
-
May 14, 2018 at 12:27 pm #575482
Norman
Hi team GP,
I’m sorry to bother for the second time today. My smooth scroll is not that smooth is it? Did I do something wrong?
May 14, 2018 at 4:07 pm #575642David
StaffCustomer SupportHi Norman, have you activated the smooth scroll in the customiser? Its under General. And the Klik Hier button has a class of smooth, this should be
smooth-scroll
May 15, 2018 at 4:18 am #575976Norman
Hi David,
I used this to do the smooth-scroll: https://gist.github.com/generatepress/60b9235b43866e346320e11cf40bb054
I deleted that code and did what you said, but it is still not smooth. It jumps to the target area.
May 15, 2018 at 4:23 am #575984David
StaffCustomer SupportHi Norman, yes smooth-scroll is now built in so no need for the additional code. Just make sure it is active in the customiser. And you need to change your button class from smooth to
smooth-scroll
May 16, 2018 at 12:22 am #576770Anass
Me too I observe that the effect is not applied when the option is marked. Is there any way to solve this? Thanks.
May 16, 2018 at 2:53 am #576845Norman
Hi David,
I changed that class, but it doesn’t make a difference.
May 16, 2018 at 5:30 am #576952David
StaffCustomer SupportHi Norman, possibly a plugin conflict, can you try disabling other plugins to see if there is a clash? I would start with the header position highlight bar you are using.
Let me know
May 16, 2018 at 5:42 am #576962Norman
Except for these plugins, I deactivated all of them, and it still didn’t work.
GP premium
Gridable
Simple CSS
Updraft
WPMLMay 16, 2018 at 5:55 am #576967David
StaffCustomer SupportHi Norman,
could be a bug with the sticky navigation, can you disable this for me please and remove the reading bar as well.
May 16, 2018 at 5:57 am #576970Norman
I have both disabled
May 16, 2018 at 6:26 am #576991David
StaffCustomer SupportHi Norman, ok sorry this is taking so long. I can see the #start ID on the button. Where is the anchor link for this to jump to? Personally i would use the GeneratePress Section ID as my jump link.
May 16, 2018 at 7:23 am #577027Norman
It’s no problem, I’m glad you can help.
I placed this anchor in the page header
<a name="start"></a>
So the smooth scroll would go down the page to the first section.
I’ve changed the # to the section ID, bit it seems not to make a difference..
Edit: to clarify, it scrolls to the right place, but it jumps instead of smooth scrolling
May 16, 2018 at 7:36 am #577035David
StaffCustomer SupportHi Norman, now if it is this, then i will kick myself and laugh a lot. The a href you have got has a comma in the classes like so:
<a class="smooth-scroll, button2 green" href="#homekeuze"><b>Klik hier</b></a>
remove that comma so:
<a class="smooth-scroll button2 green" href="#homekeuze"><b>Klik hier</b></a>
May 16, 2018 at 7:50 am #577131Norman
Hi David,
I’m afraid you have to kick yourself, because it works now 😀
It’s unbelievable how such a small thing can make a difference.
Thanks a lot for finding it out!
May 16, 2018 at 7:54 am #577138David
StaffCustomer SupportHa ha, Norman thank you for your patience, i think i went code blind…… note to self on this one. Glad it’s working!
-
AuthorPosts
- You must be logged in to reply to this topic.