- This topic has 14 replies, 3 voices, and was last updated 5 years ago by David.
May 14, 2018 at 12:27 pm #575482Norman
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 #575642DavidStaffCustomer Support
Hi 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-scrollMay 15, 2018 at 4:18 am #575976Norman
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 #575984DavidStaffCustomer Support
Hi 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-scrollMay 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
I changed that class, but it doesn’t make a difference.May 16, 2018 at 5:30 am #576952DavidStaffCustomer Support
Hi 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 knowMay 16, 2018 at 5:42 am #576962Norman
Except for these plugins, I deactivated all of them, and it still didn’t work.
WPMLMay 16, 2018 at 5:55 am #576967DavidStaffCustomer Support
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 disabledMay 16, 2018 at 6:26 am #576991DavidStaffCustomer Support
Hi 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
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 scrollingMay 16, 2018 at 7:36 am #577035DavidStaffCustomer Support
Hi 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
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 #577138DavidStaffCustomer Support
Ha ha, Norman thank you for your patience, i think i went code blind…… note to self on this one. Glad it’s working!
- You must be logged in to reply to this topic.