Jump to content

How to link to an expanded question in accordion menu markdown block?

Recommended Posts

Site URL: https://edu.ifixit.com/fast-fix-project-faq#two

I added anchor links to my accordion menu using the markdown block and some CSS and jQuery, but I would like the question to expand automatically when the anchor links are used. The rest of the page functions just how I would like—users that end up on the page organically can toggle through each question—but when I send a specific anchor link to a user, I'd like the question to automatically expand.

I'd ideally like to find a way to do this that also doesn't mess with the spacing or the hover color.

I'm using Squarespace 7.0 with the Bedford template.

Link to comment
  • 2 months later...
On 8/31/2021 at 10:45 PM, pizzacat said:

Site URL: https://edu.ifixit.com/fast-fix-project-faq#two

I added anchor links to my accordion menu using the markdown block and some CSS and jQuery, but I would like the question to expand automatically when the anchor links are used. The rest of the page functions just how I would like—users that end up on the page organically can toggle through each question—but when I send a specific anchor link to a user, I'd like the question to automatically expand.

I'd ideally like to find a way to do this that also doesn't mess with the spacing or the hover color.

I'm using Squarespace 7.0 with the Bedford template.

You can get the hash value in url and find the matched faq item in order to expand it

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace (+100 Spark plugin customisations)
🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

Link to comment
  • 5 months later...
  • 4 months later...

I think I have the same question... 

I have an anchor link on the menu (about) and would like that when clicked from the menu, the linked accordion opens automatically. Today it jumps to place but because it is not open, it looks like it navigates to the section below "about".

here is the site: https://www.seagrow.no/

and the anchor link is: https://www.seagrow.no/#About

Many thanks in advance!

Link to comment
14 hours ago, CrisH said:

I think I have the same question... 

I have an anchor link on the menu (about) and would like that when clicked from the menu, the linked accordion opens automatically. Today it jumps to place but because it is not open, it looks like it navigates to the section below "about".

here is the site: https://www.seagrow.no/

and the anchor link is: https://www.seagrow.no/#About

Many thanks in advance!

You mean click About >> This accordion will open?

image.thumb.png.0d3d654a7fdce1e69e1d7ad9558961a0.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
7 hours ago, tuanphan said:

You mean click About >> This accordion will open?

image.thumb.png.0d3d654a7fdce1e69e1d7ad9558961a0.png

yes! I mean that when we click "about" from the menu, the user will be taken to see exactly the image above, the about accordion open. Is it possible, to automatically open an accordion from an anchor link in the menu?

Link to comment
  • 1 month later...
On 9/21/2022 at 3:10 AM, CrisH said:

yes! I mean that when we click "about" from the menu, the user will be taken to see exactly the image above, the about accordion open. Is it possible, to automatically open an accordion from an anchor link in the menu?

Are you okay with how you have it setup now, with the accordion item always open? 

Link to comment
1 hour ago, crisisandcreativity said:

I have this same question! How do you link from one page to a specific section of an accordion?

I want a to link to this page, but it goes directly to the open Jewelry Care section: https://www.molinarostudio.com/info

Any JS folks find this helpful? 

https://stackoverflow.com/questions/66028832/open-accordion-item-based-on-target-in-url-wordpress-menu

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.