Charts · Gutenberg
Comparison Table block for WordPress
Feature matrix comparing multiple plans with check/cross marks, text values, and a highlighted popular column.
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.
What it actually does
Feature matrix comparing multiple plans with check/cross marks, text values, and a highlighted popular column.
Inspector panels on this block: Plans (Columns), Features (Rows). Those titles come from index.js, not from a shared template.
Comparison Table has no render.php and no frontend.js. The saved Gutenberg HTML is what visitors see, plus Blockenberg layout/typography CSS.
Where to find it
Gutenberg inserter → Charts → search “Comparison Table” (block name `blockenberg/comparison-table` in block.json). Style it in the sidebar after insert.
How to use Comparison Table block for WordPress
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Comparison Table”, insert it. Category: Charts.
- Configure inspector controls that exist on this block. Open Plans (Columns). Set “Plan Name”, “Subtitle / Price”, “Highlighted (Popular)”, “Feature Label”.
- Publish. Save the page. Output is the saved block HTML; typography/colors follow Blockenberg shared panels.
Inspector controls from this block’s code
| Control | What the code does |
|---|---|
| Plan Name | Text field in the inspector. |
| Subtitle / Price | Text field in the inspector. |
| Highlighted (Popular) | On/off toggle in the inspector. |
| Feature Label | Text field in the inspector. |
| Border Radius | Numeric range control in the inspector. Range 0–32. block.json default: 12. Saved as `borderRadius`. |
| Zebra Stripes | On/off toggle in the inspector. On by default. Saved as `zebraStripe`. |
| Sticky Header | On/off toggle in the inspector. Off by default. Saved as `stickyHeader`. |
| Header Background | Color control in the inspector. block.json default: #6c3fb5. Saved as `headerBg`. |
| Header Text | Color control in the inspector. block.json default: #ffffff. Saved as `headerText`. |
| Highlight Background | Color control in the inspector. block.json default: #f3eeff. Saved as `highlightBg`. |
| Highlight Border | Color control in the inspector. block.json default: #6c3fb5. Saved as `highlightBorder`. |
| Check Color | Color control in the inspector. block.json default: #22c55e. Saved as `checkColor`. |
| Cross Color | Color control in the inspector. block.json default: #ef4444. Saved as `crossColor`. |
When this is the right block
- Feature matrix comparing multiple plans with check/cross marks, text values, and a highlighted popular column — that is the job of Comparison Table, not a generic content block.
- Use it when you need the editor control labeled “Plan Name”, which exists on this block’s inspector.
- It matches pages about comparison, table, features.
- Inserter grouping: reports, dashboards, and data-heavy pages.
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 Table block in WordPress?
Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Comparison Table”. It sits under Charts. After insert, open Plans (Columns) and set “Plan Name”, “Subtitle / Price”, “Highlighted (Popular)”, “Feature Label”.
What makes Comparison Table different from other Blockenberg blocks?
Feature matrix comparing multiple plans with check/cross marks, text values, and a highlighted popular column. Inspector labels on this block include “Plan Name”, “Subtitle / Price”, “Highlighted (Popular)”, “Feature Label”.
Is the Comparison Table Gutenberg block free?
Yes. Comparison Table ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.
Can I style Comparison Table 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)).
Related charts blocks
Chord Diagram
Circular diagram showing bidirectional relationships and flow volumes between groups. Great for migration patterns, trade flows, cross-referrals, and collaboration networks.
Data Table
Interactive data table with sorting, search, pagination and export.
Dumbbell Chart
Horizontal dumbbell (connected dot) chart comparing two values per category — ideal for before/after, target vs actual, or two-group comparisons.
Lollipop Chart
Elegant horizontal lollipop chart — thin stems with value circles at the end. A clean alternative to bar charts for rankings, scores, and comparisons.
Area Chart
Smooth filled area chart with multiple datasets, gradient fills, and animation using Chart.js (CDN). Great for showing trends over time.
Bar Chart
Vertical or horizontal bar chart with multiple datasets using Chart.js (CDN). Supports stacked, border radius, and custom colors.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Comparison Table from the Gutenberg inserter.