Spipov
August 24, 2021, 3:49pm
1
Is there a way to have an accordion title as an anchor and to link to it, as well as expanding it when linking to it? Deep linking i think.
If not accordion, any other methods? Its a policies page with different policies. Do not want to create 4 separate pages for the policies.
1 Like
timmse
August 24, 2021, 6:21pm
2
Hi @Spipov ,
welcome! This sound similar to what @wissam tries to achieve .
Within the javascript / jQuery click function you can add an ID to jump or scroll to the specific entry and apply the “active” class to the title.
Hope this helps!
Spipov
August 26, 2021, 2:06pm
3
thanks for that, unfortunately i am not savvy enough to run jquery and scripts to do that, plus trying to limit the amount of javascript on the site (not sure how it may affect google speed index)
timmse
August 26, 2021, 9:16pm
4
Hi,
another option is the classic html anchor (smooth scrolling is built in).
Maybe not as nice as the Accordion, but it works