Zum Inhalt springen

Configuration

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Answers has two settings, both on one screen at WooCommerce → Answers, stored together in the answers_settings option. The FAQ content itself is not configured here, you author it per product in the FAQs product data tab (see Authoring FAQs).

The master switch, on by default (enabled). When off, no FAQ tab is registered on any product page and the FAQ stylesheet and script are never enqueued, the storefront reverts cleanly to no FAQs. Your saved per-product FAQ items stay in the database for when you turn it back on.

The label of the storefront FAQ tab, stored as tab_title. Leave it blank to use the default FAQs. Set it to rename the tab shoppers see next to Description and Reviews, for example Questions or Buyer Q&A. The settings screen renders a live preview of the Description / your-label / Reviews tab row so you can see the effect before saving. The value is sanitised with sanitize_text_field on save.

The save capability for this screen is manage_woocommerce, so shop managers (not just administrators) can edit it.

FAQ items are not a setting. Each product stores its own question/answer pairs in the _answers_faqs post meta, an array authored through the repeater in the product’s FAQs data tab. There is no global FAQ library, no reusable sets and no category assignment in this release.

These behaviours are deliberately not settings, because they keep the output correct:

  • FAQs always render in the product-information tab (priority 25, between Description and Reviews). There is no “after the summary” or other placement option.
  • The tab and assets appear only when the product has at least one usable FAQ.
  • Answers always escape questions, run answers through wp_kses_post, and wrap answers in wpautop on output.

There is no shortcode and no FAQPage / JSON-LD structured-data option in this version.

The storefront accordion is built on --answers-* custom properties, accent colour, borders, background, hover background, radius and gap, each with a sensible fallback. Override them from your theme stylesheet to re-theme the accordion without fighting markup:

.answers-faq {
--answers-accent: #2563eb;
--answers-radius: 6px;
}

A dark-scheme palette is applied automatically under prefers-color-scheme: dark, focus rings use the accent colour, and the open/close height transition is disabled under prefers-reduced-motion. None of this needs configuration.

Settings live in the single answers_settings option; a schema marker lives in answers_db_version. Deleting the plugin runs uninstall.php, which removes both options. The per-product _answers_faqs meta is kept on purpose, it is content attached to your products and is reused if you reinstall. Everything stays in your own database; Answers contacts no external service.