Gutenberg /faq Block, Universal Shortcodes & Design Customization
Embed product or category FAQs anywhere using the native Gutenberg /faq Block or [woo_product_faq] shortcode, customize typography and colors, and unlock Pro active-state styling and toggle icons.
📋 On This Page (Jump to Section)
Whether you build your WooCommerce store with the WordPress Block Editor (Gutenberg / Full Site Editing), Elementor, Divi, Bricks, Flatsome UX Builder, or classic PHP templates, Product FAQ for WooCommerce gives you complete placement and styling flexibility with zero CSS leakage.
1. Using the Native Gutenberg Block (/faq) #
The plugin registers a native server-side rendered Gutenberg block named Product FAQ Accordion (woo-faq/product-faq):
- Open any Page, Post, Single Product Block Template, or Full Site Editor (FSE) template.
- Type
/faqin an empty block paragraph (or click the + Block Inserter and search for Product FAQ Accordion). - In the right-hand Block Settings Inspector sidebar, you can optionally configure:
- Custom Heading (
title): Override the default global FAQ heading for this specific block instance. - Product ID (
productId): Leave blank on Single Product templates to automatically detect the current product, or enter a specific WooCommerce Product ID (e.g.,123) to embed that product’s FAQs on a landing page or blog post. - Category Slug / Term ID (
category): Enter a WooCommerce Product Category slug (e.g.,hoodies) or term ID to display that category’s Bulk FAQ group anywhere.
- Custom Heading (
2. Universal [woo_product_faq] Shortcode Reference #
Use the [woo_product_faq] shortcode inside Elementor Shortcode widgets, Divi Code modules, Bricks, Oxygen, or custom landing pages. Below are all supported attribute combinations:
| Shortcode Example | Use Case & Output Behavior |
|---|---|
[woo_product_faq] |
Context-Aware Automatic Mode: On a Single Product page, renders the current product’s FAQs (using the 3-Tier Priority Engine). On a standard WordPress page, aggregates your store’s Bulk & Product FAQs for an instant standalone FAQ hub. |
[woo_product_faq id="123"] |
Renders the FAQs belonging to WooCommerce Product ID 123 on any page, blog review, or custom sales funnel. |
[woo_product_faq id="123" title="Technical Specs Q&A"] |
Renders Product ID 123‘s FAQs with a custom section heading (Technical Specs Q&A). |
[woo_product_faq category="hoodies"] |
Renders the Bulk FAQ group assigned to the hoodies Product Category slug (also accepts a numeric term ID such as category="42"). |
[woo_product_faq category="hoodies" title="Hoodie Sizing & Care"] |
Renders the hoodies category FAQs with a custom heading. |
[woo_product_faq] exactly where you want the accordion to appear.3. Design, Typography & Color Settings (Free & Pro) #
Navigate to Product FAQ → Settings → 🎨 Design to match your store’s brand typography and palette without writing custom CSS:
Free Design Controls #
- Heading Font Color & Size: Customize the hex color (
faq_heading_color) and pixel size (faq_heading_font_size, e.g.,24px) of the main FAQ section title. - Question Font Color & Size: Set the text color (
faq_question_color) and font size (faq_question_font_size, e.g.,16px) of closed accordion question headers. - Answer Font Color & Size: Set the body color (
faq_ans_color) and font size (faq_ans_font_size, e.g.,15px) of expanded answer content.
Pro Advanced Card, Active-State & Toggle Icon Styling #
- Active Accordion Background Color (
woo_faq_pro_active_bg): Highlight the currently open question header with a custom brand tint (e.g.,#eef2ff). - Active Accordion Text Color (
woo_faq_pro_active_text_color): Change the question title color when expanded for crisp visual contrast. - Card Border Radius (
woo_faq_pro_border_radius): Customize the corner rounding of accordion cards (e.g.,0pxfor sharp minimalist lines,8pxfor modern SaaS cards, or16pxfor soft rounded containers). - Custom Accordion Toggle Icons (
woo_faq_pro_toggle_icon): Switch between Chevron (Default), Plus / Minus (+/−), Arrow Indicator, or Hide Icon.
4. Theme-Safe CSS Isolation & Conditional Asset Loading #
Many WooCommerce plugins break theme layouts because they enqueue global Bootstrap classes like .container or bare .accordion selectors on every page. Product FAQ for WooCommerce is engineered for 99+ PageSpeed scores:
- Strict Selector Scoping: Every CSS rule and JS event listener is strictly scoped inside
.woo-faq-containerand.woo-faq-archive-container—guaranteeing zero collisions with Elementor, Flatsome, WoodMart, Astra, or Bootstrap accordions. - Multi-Accordion Independence: You can place multiple FAQ blocks or shortcodes on the same page; clicking an item in one accordion never unexpectedly collapses or triggers another block.
- Conditional Asset Loading: Frontend stylesheets and scripts are only enqueued on Single Product pages, enabled Archive pages, or pages containing the
[woo_product_faq]shortcode /woo-faq/product-faqblock.