ScrollSpy > set active class to the menu item #122
Joomlaplates
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I just wanted to add the Bootstrap scrollSpy funtion.
https://getbootstrap.com/docs/4.6/components/scrollspy/#example-with-list-group
But without luck.
I want, that the anchor link ( #test) get an active class when I scroll to the ID.
My body class looks like that, but no funtion at all
<body class="<?php echo $document->getBodyClass(); ?>" data-spy="scroll" data-target=".astroid-nav" data-offset="50">Any idea or help?
Regards, Peter
Beta Was this translation helpful? Give feedback.
All reactions