Site logo

Archived topic

anchor links smooth scroll

8 replies · Started by Sourabh on June 16, 2021

Viewing posts 1–9 of 9

Hi,

referred this -

https://docs.generatepress.com/article/smooth-scroll/

activated smooth scroll in general, and created smooth scroll with anchor point, assigned class, etc, also added PHP in function.php but yet scroll not smooth ??

its working but directly pointing without scrolling effects etc.

did i commit a mistake or anything else, guide how to make it smooth and slow (like professional sites).

also want to hide anchor point name in which is displaying in URL (Refer snapshot).

refer links and snaps..

Hi there,

you will need to use a GenerateBlocks Button to do that, once that button is added and selected in the editor, go to Advanced > Additional CSS Class(es) and add: smooth-scroll - GB buttons will put that class on the link where it is required, the core buttons block does'nt.

Fine, i need to change each buttion then, will update you soon for this..

what about below ??

want to hide anchor point name in which is displaying in URL ????

its tough to understand, whether it's PHP or java, and not guidance on where should I post it...

Its Javascript and Tom explains at the end of the topic how it can be added.
But this requirement is out of our scope - you may want to employ a developer who can make those kinds of changes.

Leave it then..what else I can say more..

Sorry we can't be of assistance here. Your request is to overwrite the default browser functionality using Javascript - which isn't in our scope. If we had the code available that we were confident that would work then we would provide it. Not much more we can do.

Its okay David, i understand it... You are kind and helpful...Thanks

This archived topic is closed to new replies.