Marketing · Gutenberg

Product Card block for WordPress

Showcase any product with image, name, price, star rating, features list, badges, and buy button — no WooCommerce required.

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

Showcase any product with image, name, price, star rating, features list, badges, and buy button — no WooCommerce required.

Inspector panels on this block: Product Info, Badge & Rating, Features List, Buttons, Image, Card Style. Those titles come from index.js, not from a shared template.

Behavior controls: “Layout” options: Vertical, Horizontal.

Product Card 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 → Marketing → search “Product Card” (block name `blockenberg/product-card` in block.json). Style it in the sidebar after insert.

How to use Product Card block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Product Card”, insert it. Category: Marketing.
  3. Configure inspector controls that exist on this block. Open Product Info. Set “Product Name”, “Description”, “Price”, “Original Price (crossed out)”.
  4. Publish. Save the page. Output is the saved block HTML; typography/colors follow Blockenberg shared panels.

Inspector controls from this block’s code

ControlWhat the code does
Product NameText field in the inspector. block.json default: Premium Wireless Headphones. Saved as `productName`.
DescriptionMultiline text field in the inspector. block.json default: Crystal-clear audio with active noise cancellation, 30-hour battery life, and premium comfort cushions.. Saved as `description`.
PriceText field in the inspector. block.json default: $149.99. Saved as `price`.
Original Price (crossed out)Text field in the inspector. block.json default: $199.99. Saved as `originalPrice`.
Show Original PriceOn/off toggle in the inspector. On by default. Saved as `showOriginal`.
Show BadgeOn/off toggle in the inspector. On by default. Saved as `showBadge`.
Badge TextText field in the inspector. block.json default: Best Seller. Saved as `badge`.
Show RatingOn/off toggle in the inspector. On by default. Saved as `showRating`.
Stars (1-5)Numeric range control in the inspector. Range 1–5. block.json default: 4. Saved as `rating`.
Review CountText field in the inspector. block.json default: 128. Saved as `ratingCount`.
Show FeaturesOn/off toggle in the inspector. On by default. Saved as `showFeatures`.
Features (one per line)Multiline text field in the inspector. block.json default: Active Noise Cancellation 30-hour battery Bluetooth 5.3 Foldable design Carrying case included. Saved as `features`.
Primary Button LabelText field in the inspector. block.json default: Buy Now. Saved as `btnLabel`.
Primary Button URLText field in the inspector. block.json default: #. Saved as `btnUrl`.
Second ButtonOn/off toggle in the inspector. Off by default. Saved as `showSecondBtn`.
Second Button LabelText field in the inspector. block.json default: View Details. Saved as `secondBtnLabel`.
Second Button URLText field in the inspector. block.json default: #. Saved as `secondBtnUrl`.
Button Radius (px)Numeric range control in the inspector. Range 0–50. block.json default: 10. Saved as `btnRadius`.
Image Height (px)Numeric range control in the inspector. Range 100–600. block.json default: 260. Saved as `imgHeight`.
LayoutSelect control; the chosen value is saved on the block. Options: Vertical; Horizontal. block.json default: vertical. Saved as `layoutStyle`.
Card Radius (px)Numeric range control in the inspector. Range 0–32. block.json default: 16. Saved as `cardRadius`.
Card ShadowOn/off toggle in the inspector. On by default. Saved as `cardShadow`.
Product Name (Name Typo)Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `nameTypo`.
Price (Price Typo)Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `priceTypo`.
Description (Desc Typo)Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `descTypo`.
FeaturesShared Blockenberg typography popover (family, size, weight, spacing). Saved as `featureTypo`.
ButtonsShared Blockenberg typography popover (family, size, weight, spacing). Saved as `btnTypo`.
Card BackgroundColor control in the inspector. block.json default: #ffffff. Saved as `cardBg`.
Card BorderColor control in the inspector. block.json default: #e5e7eb. Saved as `cardBorder`.
Image Area BGColor control in the inspector. block.json default: #f9fafb. Saved as `imgBg`.
Product NameColor control in the inspector. block.json default: #1f2937. Saved as `nameColor`.
PriceColor control in the inspector. block.json default: #6c3fb5. Saved as `priceColor`.
Original PriceColor control in the inspector. block.json default: #9ca3af. Saved as `originalPriceColor`.
DescriptionColor control in the inspector. block.json default: #6b7280. Saved as `descColor`.
Feature TextColor control in the inspector. block.json default: #374151. Saved as `featureColor`.
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`.
Badge BGColor control in the inspector. block.json default: #f59e0b. Saved as `badgeBg`.
Badge TextColor control in the inspector. block.json default: #ffffff. Saved as `badgeColor`.

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

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Product Card”. It sits under Marketing. After insert, open Product Info and set “Product Name”, “Description”, “Price”, “Original Price (crossed out)”.

What makes Product Card different from other Blockenberg blocks?

Showcase any product with image, name, price, star rating, features list, badges, and buy button — no WooCommerce required. Inspector labels on this block include “Product Name”, “Description”, “Price”, “Original Price (crossed out)”.

Is the Product Card Gutenberg block free?

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

Can I style Product Card 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: Product Info, Badge & Rating, Features List, Buttons).

Related marketing blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Product Card from the Gutenberg inserter.

Get Blockenberg