How to add accessible Accordions to Squarespace product pages

 

Here’s how to add accordion menus to your Squarespace product detail pages.

 
 

How to add accessible Accordions to Squarespace product pages

a.
Squarespace
b.
Video

Introduction

Accordion menus are a great way to present product information in a clean, organized layout, letting customers view important details before they add items to their cart. Here’s how to add accordion menus to your Squarespace product detail pages.

Step 1: Start Adding Your Accordion Content

  1. Go to Product Details
    Begin by navigating to the product detail page where you want the accordion to appear. Look for the Description section—this is where you’ll add your accordion content.

  2. Create Accordion Titles
    Start by entering the first title for your accordion menu. Make sure to format each title as Heading Four (H4) to ensure proper display and functionality.

  3. Add Content Under Each Title
    After entering a title, press Enter and add the relevant text or details that you want to appear under that section. This will be the collapsible content associated with the title.

  4. Repeat for Additional Sections
    Add any additional accordion sections by repeating the same process—enter the next title, format it as Heading Four, and add the relevant text beneath it. You can create as many accordion sections as you need.

Step 2: Adding Code for the Accordion Feature

Access the Accordion Code

We have a free accordion menu component available on our Creative Components page. Simply click the link provided in the video description to access it, and copy the code needed for your accordion.

ACCESS THE CODE SNIPPETS

Insert Code into Footer Injection Area

Go to the Injection Area in Squarespace. To find it, click the search icon and type “injection.”

In the footer injection area, paste the copied accordion code.

Apply Custom CSS

Copy the custom CSS provided on the Creative Components page.

Access the Custom CSS Area by searching for “CSS” in Squarespace.

Step 3: Save and Test Your Accordion Menus

Once the code is in place, save your changes and refresh the page to see the accordion menu in action. The titles should now expand and collapse as you click on them, neatly organizing the product information on your page.

Accessibility Features

These accordion menus are designed to be accessible for users who navigate with keyboards only. Customers can open and close each section using the Return key or Space bar, which is an essential feature for an inclusive web experience.

Additional Resources

If you’re interested in more stylish components or other solutions for your Squarespace or Shopify site, check out our Creative Components page for free resources. You can also subscribe to our channel to stay updated with new tutorials and resources.

Previous
Previous

Is coding hard?

Next
Next

Fab & Free Flodesk Email Templates with Easy Tutorial