Home › Forums › Jevelin Theme › Anchor link to open accordion tab
Home › Forums › Jevelin Theme › Anchor link to open accordion tab
Hello, I am using the standard wpbakery accordion on my page.
I am trying to use an anchor link on a button at the top of the page to open a specific section in an accordion further down the page.
If I use the section ID as an anchor link, the page jumps down to that section, but does not open it the accordion section (defaults to first accordion section open).
——————————
I found a sort of workaround by forcing a page reload using “?” at the end of the link url, but it looks bad, as the page scrolls down, then reloads….
Included some examples for you. Any help appreciated!!! Thanks!!!!
Solution for this topic
Hi @sortedmedia,
I hope you are well today and thank you for your question.
You have to develop custom code to achieve this as described below.
https://wordpress.stackexchange.com/a/196705
https://theme.co/archive/forums/topic/how-to-use-deep-links-to-set-accordion-open/
Best regards,
Shufflehound team
Thank you! Please close.
You are always welcome here š