Blog · Gutenberg

Book Review block for WordPress

Rich book review block with cover image, star rating, details grid, pros & cons, and Schema.org Book + Review structured data for SEO.

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

Rich book review block with cover image, star rating, details grid, pros & cons, and Schema.org Book + Review structured data for SEO.

Inspector panels on this block: Book Details, Rating, Buy Button, Display, Sizing. Those titles come from index.js, not from a shared template.

Where to find it

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

How to use Book Review block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Book Review”, insert it. Category: Blog.
  3. Configure inspector controls that exist on this block. Open Book Details. Set “Book title”, “Author”, “Genre”, “Publisher”.
  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
Book titleText field in the inspector. block.json default: The Great Gatsby. Saved as `bookTitle`.
AuthorText field in the inspector. block.json default: F. Scott Fitzgerald. Saved as `bookAuthor`.
GenreText field in the inspector. block.json default: Classic Fiction. Saved as `genre`.
PublisherText field in the inspector. block.json default: Scribner. Saved as `publisher`.
Publish yearText field in the inspector. block.json default: 1925. Saved as `publishYear`.
PagesText field in the inspector. block.json default: 180. Saved as `pages`.
ISBN (optional)Text field in the inspector. Saved as `isbn`.
Cover image URLText field in the inspector. Saved as `coverUrl`.
Cover alt textText field in the inspector. Saved as `coverAlt`.
RatingNumeric range control in the inspector. Range 0.5–5. block.json default: 4. Saved as `rating`.
Max ratingNumeric range control in the inspector. Range 5–10. block.json default: 5. Saved as `maxRating`.
Rating labelText field in the inspector. block.json default: Our Rating. Saved as `ratingLabel`.
Show buttonOn/off toggle in the inspector. On by default. Saved as `showBtn`.
Button textText field in the inspector. block.json default: Buy on Amazon. Saved as `btnText`.
Button URLText field in the inspector. block.json default: #. Saved as `btnUrl`.
Open in new tabOn/off toggle in the inspector. On by default. Saved as `btnTarget`.
Show book detailsOn/off toggle in the inspector. On by default. Saved as `showDetails`.
Show prosOn/off toggle in the inspector. On by default. Saved as `showPros`.
Show consOn/off toggle in the inspector. On by default. Saved as `showCons`.
Inject Schema.org JSON-LDOn/off toggle in the inspector. On by default. Saved as `showSchema`.
AccentColor control in the inspector. block.json default: #6c3fb5. Saved as `accentColor`.
Card backgroundColor control in the inspector. block.json default: #ffffff. Saved as `cardBg`.
Header backgroundColor control in the inspector. block.json default: #f5f3ff. Saved as `headerBg`.
Colors — BorderColor control in the inspector. block.json default: #e5e7eb. Saved as `borderColor`.
Colors — TitleColor control in the inspector. block.json default: #1e1b4b. Saved as `titleColor`.
AuthorColor control in the inspector. block.json default: #6c3fb5. Saved as `authorColor`.
Body textColor control in the inspector. block.json default: #374151. Saved as `bodyColor`.
StarsColor control in the inspector. block.json default: #f59e0b. Saved as `starColor`.
ProsColor control in the inspector. block.json default: #15803d. Saved as `prosColor`.
ConsColor control in the inspector. block.json default: #b91c1c. Saved as `consColor`.
Button bgColor control in the inspector. block.json default: #6c3fb5. Saved as `btnBg`.
Button textColor control in the inspector. block.json default: #ffffff. Saved as `btnColor`.
Max width (px)Numeric range control in the inspector. Range 400–1200. block.json default: 860. Saved as `maxWidth`.
Cover width (px)Numeric range control in the inspector. Range 80–300. block.json default: 160. Saved as `coverWidth`.
Card radius (px)Numeric range control in the inspector. Range 0–32. block.json default: 16. Saved as `cardRadius`.
Button radius (px)Numeric range control in the inspector. Range 0–50. block.json default: 8. Saved as `btnRadius`.

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 Book Review block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Book Review”. It sits under Blog. After insert, open Book Details and set “Book title”, “Author”, “Genre”, “Publisher”.

Does Book Review 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 Book Review Gutenberg block free?

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

Can I style Book Review 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: Book Details, Rating, Buy Button, Display).

Related blog blocks

Get Blockenberg

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

Get Blockenberg