Smooth Scroll For A Button Addon - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Smooth Scroll For A Button Addon

How

How

SP Page Builder 3 years ago

Hello, I'm trying to add data-scroll-to="true" to href generated for button by Button and button Group addons, but it doesn't work. I've tried to add data-scroll-to="true" into /components/com_sppagebuilder/addons/button/site.php but have some issue where exactly should I put it.

Could You give some tip?

0
3 Answers
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #80230

Hi there!

Thanks for your query.

You may check the following documentation:

https://www.joomshaper.com/documentation/helix-framework/helix-ultimate-2/customization-tips#how-to-add-smooth-scrolling

It seems PHP code customization is needed. However, customization support is prohibited here.

Have a nice day!

Best Regards

0
How
How
Accepted Answer
3 years ago #80329

LOL I just add in CSS:

html { scroll-behavior: smooth; }

Thanx

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #80917

Hello,

Yes, I use this sometimes too.

Glad that you have made it:)

Best Regards

0