Skip to content
Sign in Get started
Menu
Developer docs menu

Companion's blocks reference

Applies to Companion 1.0.3 Updated 8 November 2026 View as Markdown

Generated from the theme and LanternWP Companion with every release; do not edit it by hand.

How to move or remove them: Companion's blocks.

Contact Form

lanternwp/contact-form: A form that sends the store a message: name, email, topic, order and message.

  • Placed by Block Hooks: nowhere; insert it yourself.
  • Attributes: heading (string, default ""), topics (array, default []), fields (array, default []).

Product Dimensions

lanternwp/dimensions: A drawing of the product to scale beside a table of its dimensions, measurements and boxes, in inches or centimeters, from its Shipping fields; or a link to that section, beside the price.

  • Placed by Block Hooks: core/group (before), core/pattern (before), woocommerce/product-price (after).
  • Attributes: display (string, default "section").

Fit in Reviews

lanternwp/fit-scale: How a product fits by its reviews, on a scale from runs small to runs large, beside its sizes; or one reviewer's answer.

  • Placed by Block Hooks: woocommerce/add-to-cart-with-options-variation-selector (after), woocommerce/product-stock-indicator (before).
  • Attributes: fit (string, default "").

Free Shipping Progress

lanternwp/free-shipping-progress: How far the cart is from free shipping, as a sentence and a bar.

  • Placed by Block Hooks: woocommerce/mini-cart-items-block (before), woocommerce/cart-items-block (firstChild).
  • Attributes: none.

How It Fits

lanternwp/how-it-fits: How a product fits, in a sentence, and the height and size of the person in its photos, beside its sizes.

  • Placed by Block Hooks: woocommerce/add-to-cart-with-options-variation-selector (after), woocommerce/product-stock-indicator (before).
  • Attributes: none.

Back-in-Stock Confirmation

lanternwp/notify-confirmation: The card of the page that confirms a back-in-stock request. It stands in the Back-in-Stock Confirmation template.

  • Placed by Block Hooks: nowhere; insert it yourself.
  • Attributes: none.

Back-in-Stock Form

lanternwp/notify-me: An email field for a sold-out size or product, which tells the shopper once it is back.

  • Placed by Block Hooks: woocommerce/add-to-cart-with-options-quantity-selector (before).
  • Attributes: none.

Size & Option Guide

lanternwp/option-guide: A link beside a product's option, such as Size guide beside the size, which opens the guide of its category.

  • Placed by Block Hooks: woocommerce/add-to-cart-with-options-variation-selector-attribute-name (after).
  • Attributes: none.

Product Options Line

lanternwp/option-summary: The options a product comes in, in a line under its name on a card: Bouclé · 3 sizes.

  • Placed by Block Hooks: woocommerce/product-price (before).
  • Attributes: none.

Product Badges

lanternwp/product-badges: The product's Bestseller and New badges.

  • Placed by Block Hooks: woocommerce/product-sale-badge (after), core/post-terms (after).
  • Attributes: none.

Dimension Filter

lanternwp/product-filter-dimension: Filter products by ranges of their width, depth or height, from their Dimensions, such as Up to 72", 72–86" and 86" and up.

  • Placed by Block Hooks: woocommerce/product-filter-price (before).
  • Attributes: measure (string, default "width"), ranges (string, default "").

Second Photo on Hover

lanternwp/product-hover-image: The product's second photo, shown over its image while a pointer rests on the card.

  • Placed by Block Hooks: woocommerce/product-image (firstChild).
  • Attributes: none.

Posts with this Product

lanternwp/product-posts: The posts whose Shop the story holds the product, newest first, as cards under a heading with a link to the blog; nothing while no post holds it.

  • Placed by Block Hooks: nowhere; insert it yourself.
  • Attributes: heading (string, default ""), count (integer, default 2).

Product Swatches

lanternwp/product-swatches: The colors or patterns a product comes in, as swatches.

  • Placed by Block Hooks: woocommerce/product-rating (before).
  • Attributes: max (integer, default 5).

Quick View

lanternwp/quick-view: A button on a product card that opens the product's quick view.

  • Placed by Block Hooks: woocommerce/product-image (after).
  • Attributes: none.

Samples

lanternwp/samples: Samples of a product option's values, such as fabrics or paint colors: a link under the values on a product page that opens them in a sheet; on any other page the sheet itself, or a button that opens it. Several go to the cart at once.

  • Placed by Block Hooks: woocommerce/product-filter-chips (after), woocommerce/dropdown (after).
  • Attributes: attribute (string, default ""), display (string, default "sheet"), link (string, default ""), button (array, default []), note (string, default "").

Product Set Hero

lanternwp/set-hero: One product set across a hero section: its photo with a point on each product, and beside it the products, their price and one button that adds the whole set to the cart.

  • Placed by Block Hooks: core/group (lastChild).
  • Attributes: set (integer, default 0).

Product Sets

lanternwp/sets: Products that go together, on a photo or in a list, with their options to choose and one button that adds them to the cart together.

  • Placed by Block Hooks: core/group (before), core/pattern (before).
  • Attributes: sets (array, default []), heading (string, default "").

Shipping Time

lanternwp/ships-in: How long the product takes to ship, from its shipping class: Ships in 7–9 weeks.

  • Placed by Block Hooks: woocommerce/add-to-cart-with-options-quantity-selector (before), woocommerce/product-price (after).
  • Attributes: place (string, default "buy").

Chosen Value Details

lanternwp/value-details: The description and facts of each value the shopper chooses, such as a fabric, a metal or a shade, from the attribute's terms screen; it follows the choice.

  • Placed by Block Hooks: nowhere; insert it yourself.
  • Attributes: none.