- This topic has 14 replies, 3 voices, and was last updated 2 years, 11 months 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?GP Premium 1.6.2May 14, 2018 at 4:07 pm #575642DavidStaffCustomer SupportMay 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 SupportMay 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 SupportMay 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 #577138
- You must be logged in to reply to this topic.