Open toggle block by default when the anchor link is in the URL
I’m not sure if this is possible, but it would be great to have a functionality where a toggle block with set ID is opened by default if its ID (anchor link) is used in the url.
For example, I have a page with 20+ toggle block, all closed by default, and I want to link one of the toggles from a different page, let’s say it’s 15th toggle from the list, and I assign an ID “linked-toggle” ( https://tppr.me/Qniyt). When I visit the page using the www.website.com/page#linked-toggle, it scrolls down to that toggle, but it would be useful if that toggle could be opened by default when visiting from www.website.com/page#linked-toggle URL.
Hope I explained that clearly.
Let me know if there’s any chance we could get this feature.
You can already do that.
When you are editing a panel, head on to Advanced section of the block options.
You can put the ID there that can be used as the anchor.
Please refer to the attached screenshot.
I am also trying to do this, and have added anchor link in the Advanced section of the block option. However the link with the anchor goes to the full page, and does not automatically open that particular section. Any suggestions please?
Please share a link where we can check it out.
Having the same issue. I have anchor tags given to both the panel block and as well as a heading (H4) inside the panel. When you click on the link with the anchor, the toggle is not expanded to the link. I tried giving both (panel anchor and heading anchor) in the URL, but it wont expand panel and show the heading.