Anchor in accordions

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

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!

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)

Hi,

another option is the classic html anchor (smooth scrolling is built in).
Maybe not as nice as the Accordion, but it works :wink: