Custom FAQ code for Squarespace
FAQ Accordion Generator
Write your answers, choose a style, and preview the result. Export a self-contained accordion when you want to maintain your FAQ as custom code.
Customize and preview free. Accordion code export: $11.99 once for personal use. Optional FAQ JSON-LD export is free. See packs and commercial licenses.
Answer the questions your customers actually ask.
Use your real policies. Text is treated as text, including HTML characters. Links and rich-text formatting are not supported in this export. Blank extra rows are ignored; partly completed rows must be finished or removed.
Choose the appearance.
Six-digit hex color. Choose one visible against white and light gray.
Answers open immediately. Only the icon animates; reduced-motion preferences disable that animation.
Preview your FAQ
Your site's fonts can differ. These drafts stay in this open tab and are not saved to an account.
Add one complete question and answer to see the preview.
Before exporting:
- Add at least one visible question and its complete answer.
Your next step
Like the result? Put it on your site.
Checking your tool access...
Install the custom accordion
The script requires a Squarespace plan that supports JavaScript in Code blocks, currently Core, Plus, or Advanced. Check legacy-plan availability before buying. Squarespace's Code block requirements.
- Edit the page, add a Code block, select HTML mode, and turn Display Source off. Paste the complete export. Replace an older copy instead of adding a duplicate.
- Save, then open the published page while signed out. Check it on a phone and with a keyboard. Read your longest answer all the way to the end.
- If you install two accordions, check each independently. Without the optional script running, the disclosure rows still work, but multiple answers can stay open.
- To change an answer later, update the generator and replace that block's entire contents. Use the native block if editing inside Squarespace is more important than owning the code.
This preview is not an installation check. Theme overrides, other custom code, and Squarespace's editor can affect the result. Read the native and custom installation guide.
Optional FAQ JSON-LD, free
FAQPage describes the same complete questions and answers. It does not create visible content or Google FAQ rich results. Add it only if you have a reason to provide this structured data.
Keep it on the page with these answers, not in a sitewide footer. For a regular Squarespace page, open its settings, then Advanced and Page Header Code Injection. Check existing markup and plan support first. Placement and validation guide.