Blog · Gutenberg

Review Schema block for WordPress

Displays an aggregate star rating with Schema.org JSON-LD markup for rich search results.

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

Displays an aggregate star rating with Schema.org JSON-LD markup for rich search results.

Inspector panels on this block: Item Info, Aggregate Rating, Reviews, Schema & Layout. Those titles come from index.js, not from a shared template.

Behavior controls: “Layout” options: Card, Compact.

Where to find it

Gutenberg inserter → Blog → search “Review Schema” (block name `blockenberg/review-schema` in block.json). Style it in the sidebar after insert.

How to use Review Schema block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Review Schema”, insert it. Category: Blog.
  3. Configure inspector controls that exist on this block. Open Item Info. Set “Item Name”, “Item Type”, “Description”, “Rating Value”.
  4. Check the published page. The view script reads HTML data attributes: data-opts. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Item NameText field in the inspector. block.json default: Our Product. Saved as `itemName`.
Item TypeSelect control; the chosen value is saved on the block. block.json default: Product. Saved as `itemType`.
DescriptionMultiline text field in the inspector. Saved as `description`.
Rating ValueNumeric range control in the inspector. Range 1–5. block.json default: 4.8. Saved as `ratingValue`.
Rating CountNumeric range control in the inspector. Range 1–100000. block.json default: 127. Saved as `ratingCount`.
Best RatingNumeric range control in the inspector. Range 5–10. block.json default: 5. Saved as `bestRating`.
Rating Size (px)Numeric range control in the inspector. Range 24–96. block.json default: 56. Saved as `ratingSize`.
Star Size (px)Numeric range control in the inspector. Range 16–56. block.json default: 32. Saved as `starSize`.
Show ReviewsOn/off toggle in the inspector. On by default. Saved as `showReviews`.
ColumnsSelect control; the chosen value is saved on the block. block.json default: 3. Saved as `reviewColumns`.
AuthorText field in the inspector.
Date (YYYY-MM-DD)Text field in the inspector.
RatingNumeric range control in the inspector.
Review TextMultiline text field in the inspector.
Item Name (Heading Typo)Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `headingTypo`.
Body TextShared Blockenberg typography popover (family, size, weight, spacing). Saved as `bodyTypo`.
Output JSON-LD SchemaOn/off toggle in the inspector. On by default. Saved as `showSchema`.
LayoutSelect control; the chosen value is saved on the block. Options: Card; Compact. block.json default: card. Saved as `layout`.
Card Radius (px)Numeric range control in the inspector. Range 0–24. block.json default: 16. Saved as `cardRadius`.
Star FilledColor control in the inspector. block.json default: #f59e0b. Saved as `starColor`.
Star EmptyColor control in the inspector. block.json default: #e2e8f0. Saved as `starEmpty`.
Section BGColor control in the inspector. Saved as `sectionBg`.
Card BGColor control in the inspector. block.json default: #f8fafc. Saved as `cardBg`.
Card BorderColor control in the inspector. block.json default: #e2e8f0. Saved as `cardBorder`.
HeadingColor control in the inspector. block.json default: #0f172a. Saved as `headingColor`.
Body TextColor control in the inspector. block.json default: #475569. Saved as `bodyColor`.

What the front-end script actually does

When this is the right block

Notes from the implementation

viewScript: this folder’s frontend.js is enqueued on the front end for this block.

FAQ

How do I add the Review Schema block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Review Schema”. It sits under Blog. After insert, open Item Info and set “Item Name”, “Item Type”, “Description”, “Rating Value”.

Does Review Schema output FAQ schema?

Yes, when the schema toggle on this block is on. The front-end script injects FAQPage JSON-LD. That is not the same as Yoast/Rank Math site-wide schema.

Is the Review Schema Gutenberg block free?

Yes. Review Schema ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Review Schema to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Item Info, Aggregate Rating, Reviews, Schema & Layout).

Related blog blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Review Schema from the Gutenberg inserter.

Get Blockenberg