Marketing · Gutenberg

Comparison Cards block for WordPress

Visual side-by-side product or plan comparison cards with features, pricing, and CTA. Distinct from the tabular Comparison Table block.

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

Visual side-by-side product or plan comparison cards with features, pricing, and CTA. Distinct from the tabular Comparison Table block.

Inspector panels on this block: Cards, Header, Appearance. Those titles come from index.js, not from a shared template.

Behavior controls: “Type” options: ✓ Check, ✗ Cross, — Dash.

Where to find it

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

How to use Comparison Cards 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 Cards”, insert it. Category: Marketing.
  3. Configure inspector controls that exist on this block. Open Cards. Set “Plan title”, “Subtitle”, “Price”, “Period (e.g. mo / yr)”.
  4. Check the published page. The view script reads HTML data attributes: data-currency, data-initialized, data-items, data-show-vs. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Plan titleText field in the inspector.
SubtitleText field in the inspector.
PriceText field in the inspector.
Period (e.g. mo / yr)Text field in the inspector.
Badge textText field in the inspector.
CTA labelText field in the inspector.
CTA URLText field in the inspector.
Highlighted (featured card)On/off toggle in the inspector.
CTA opens in new tabOn/off toggle in the inspector.
Cards — TextText field in the inspector.
TypeSelect control; the chosen value is saved on the block. Options: ✓ Check; ✗ Cross; — Dash.
Show section titleOn/off toggle in the inspector. On by default. Saved as `showTitle`.
Show subtitleOn/off toggle in the inspector. On by default. Saved as `showSubtitle`.
Show "vs" badgesOn/off toggle in the inspector. On by default. Saved as `showVsBadge`.
Currency symbolText field in the inspector. block.json default: $. Saved as `currency`.
Card radius (px)Numeric range control in the inspector. Range 0–32. block.json default: 16. Saved as `cardRadius`.
CTA radius (px)Numeric range control in the inspector. Range 0–32. block.json default: 8. Saved as `ctaRadius`.
Gap (px)Numeric range control in the inspector. Range 0–60. block.json default: 20. Saved as `gap`.
Card title size (px)Numeric range control in the inspector. Range 14–36. block.json default: 22. Saved as `cardTitleSize`.
Price size (px)Numeric range control in the inspector. Range 24–72. block.json default: 44. Saved as `priceSize`.
Padding topNumeric range control in the inspector. Range 0–200. block.json default: 64. Saved as `paddingTop`.
Padding bottomNumeric range control in the inspector. Range 0–200. block.json default: 64. Saved as `paddingBottom`.

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

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Comparison Cards”. It sits under Marketing. After insert, open Cards and set “Plan title”, “Subtitle”, “Price”, “Period (e.g. mo / yr)”.

What makes Comparison Cards different from other Blockenberg blocks?

Visual side-by-side product or plan comparison cards with features, pricing, and CTA. Distinct from the tabular Comparison Table block. Inspector labels on this block include “Plan title”, “Subtitle”, “Price”, “Period (e.g. mo / yr)”.

Is the Comparison Cards Gutenberg block free?

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

Can I style Comparison Cards 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: Cards, Header, Appearance).

Related marketing blocks

Get Blockenberg

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

Get Blockenberg