Marketing · Gutenberg

Comparison Matrix block for WordPress

Feature comparison table with checkmarks, icons, and highlighted columns.

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

Feature comparison table with checkmarks, icons, and highlighted columns.

Inspector panels on this block: Plans / Columns, Features / Rows, Appearance. Those titles come from index.js, not from a shared template.

Where to find it

Gutenberg inserter → Marketing → search “Comparison Matrix” (block name `blockenberg/comparison-matrix` in block.json). Style it in the sidebar after insert.

How to use Comparison Matrix block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Comparison Matrix”, insert it. Category: Marketing.
  3. Configure inspector controls that exist on this block. Open Plans / Columns. Set “Name”, “Subtitle”, “Badge (optional)”, “Highlight (featured)”.
  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
NameText field in the inspector.
SubtitleText field in the inspector.
Badge (optional)Text field in the inspector.
Highlight (featured)On/off toggle in the inspector.
Feature LabelText field in the inspector.
Group Header (optional)Text field in the inspector.
Cell Padding (px)Numeric range control in the inspector. Range 8–32. block.json default: 16. Saved as `cellPadding`.
Header Radius (px)Numeric range control in the inspector. Range 0–24. block.json default: 12. Saved as `headerRadius`.
First Column Width (px)Numeric range control in the inspector. Range 100–400. block.json default: 200. Saved as `firstColWidth`.
Sticky Header RowOn/off toggle in the inspector. On by default. Saved as `stickyHeader`.
Header BGColor control in the inspector. block.json default: #f8fafc. Saved as `headerBg`.
Header TextColor control in the inspector. block.json default: #0f172a. Saved as `headerColor`.
Highlight BGColor control in the inspector. block.json default: #6366f1. Saved as `highlightBg`.
Highlight TextColor control in the inspector. block.json default: #ffffff. Saved as `highlightColor`.
Row ColorColor control in the inspector. block.json default: #334155. Saved as `rowColor`.
Colors — BorderColor control in the inspector. block.json default: #e2e8f0. Saved as `borderColor`.
CheckColor control in the inspector. block.json default: #10b981. Saved as `checkColor`.
CrossColor control in the inspector. block.json default: #f43f5e. Saved as `crossColor`.

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 Comparison Matrix block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Comparison Matrix”. It sits under Marketing. After insert, open Plans / Columns and set “Name”, “Subtitle”, “Badge (optional)”, “Highlight (featured)”.

What makes Comparison Matrix different from other Blockenberg blocks?

Feature comparison table with checkmarks, icons, and highlighted columns. Inspector labels on this block include “Name”, “Subtitle”, “Badge (optional)”, “Highlight (featured)”.

Is the Comparison Matrix Gutenberg block free?

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

Can I style Comparison Matrix 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: Plans / Columns, Features / Rows, Appearance).

Related marketing blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Comparison Matrix from the Gutenberg inserter.

Get Blockenberg