Documentation

Smart Marketing Blocks Documentation

Product guidance, setup notes and block reference articles for Smart Marketing Blocks customers.

FAQ Schema

Purpose

The block creates an accessible FAQ accordion and adds schema.org FAQPage JSON-LD for the questions and answers.

Content

  • Question: the question text.
  • Answer: the answer text.

Settings

  • Open first item: opens the first question by default.
  • Closed question icon: the Dashicon shown for a closed question.
  • Open question icon: the Dashicon shown for an open question.

Color Settings

  • Question background: the question row background.
  • Answer background: the answer area background.
  • Question text: the question text color.
  • Answer text: the answer text color.

Frontend Behavior

When a user clicks a question, the block toggles aria-expanded and hides or shows the answer. The HTML also includes JSON-LD with the FAQPage type; the schema includes only items where both the question and answer are filled in.

Pro Settings

The interface marks the following as Pro features: search inside questions, FAQ categories, and expand all / collapse all controls.