Skip to main content

Product Search

A search field scoped to products.

The block renders through the wc_product_search element — the same PHP that runs in the page builder, so the front end is identical either way.

caution
Needs the WooCommerce extension and the WooCommerce plugin

This element ships with the WooCommerce extension, which is inactive by default, and it needs the WooCommerce plugin installed and active.

With either missing the block does not register at all — so it appears in the inserter exactly when it can actually work, rather than as an entry that renders nothing.

What the sidebar exposes

OptionWhat it does
placeholderWhat it says before anyone types
button_textButton text
button_iconButton icon
layoutField and button arrangement
field_shapeField shape
sizeField size
button_styleButton preset
widthWidth
alignmentAlignment

Anything not listed stays available in the page builder, and round-trips untouched.

Products only

Unlike Site Search, which searches everything.