WooCommerce · Elementor

WC Product Category widget for Elementor

Products from one WooCommerce category, with style controls.

Open live demo

Get King Addons

This page describes the PHP/JS for this widget — not a renamed stub. Install the free plugin from WordPress.org.

Get King Addons

What it actually does

Products from one WooCommerce category, with style controls.

Woo Shortcode Product Category widget. Renders products from a specific category using [product_category] shortcode.

Output depends on WooCommerce objects (products, cart, or account). Empty without WooCommerce data.

How to add it in Elementor

  1. Install King Addons. Install Elementor and King Addons. Get King Addons from WordPress.org.
  2. Edit with Elementor. Open a page and click Edit with Elementor.
  3. Insert the widget. Search the panel for “WC Product Category”. Typing “king” lists every King Addons widget.
  4. Set inspector controls from this widget’s PHP. Configure “Category Slug”, “Products Per Page”, “Columns”, “Order By”. Style and Content tabs are listed on this page.

When to use it

Tip: After King Addons is active, type king in the Elementor search box to list every widget, including WC Product Category.

Inspector controls from this widget’s PHP

ControlWhat the code does
Category Settings — Category SlugEnter the category slug to display products from.
Category Settings — Products Per PageNumeric value used in this widget’s render/JS (default 12, min 1, max 100).
Category Settings — ColumnsThe chosen value is read in render() and applied on the front end. Options: 1; 2; 3; 4; 5; 6.
Category Settings — Order ByThe chosen value is read in render() and applied on the front end. Options: Date; Title; Price; Popularity; Rating; Random; Menu Order.
Category Settings — OrderThe chosen value is read in render() and applied on the front end. Options: Ascending; Descending.
Product Item — Background ColorWrites CSS `background-color` onto the widget’s front-end markup.
Product Item — PaddingWrites CSS `padding` onto the widget’s front-end markup.
Product Item — BorderElementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} ul.products li.product`.
Product Item — Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup.
Product Item — Box ShadowElementor box-shadow group for the selector. Selector: `{{WRAPPER}} ul.products li.product`.
Product Item — Row GapWrites CSS `margin-bottom` onto the widget’s front-end markup. (min 0, max 100).
Product Image — Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup.
Product Image — SpacingWrites CSS `margin-bottom` onto the widget’s front-end markup. (min 0, max 50).
Product Title — ColorWrites CSS `color` onto the widget’s front-end markup.
Product Title — Hover ColorWrites CSS (a, color) onto the widget’s front-end markup.
Product Title — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} ul.products li.product .woocommerce-loop-product__title`.
Product Title — MarginWrites CSS `margin` onto the widget’s front-end markup.
Price — ColorWrites CSS `color` onto the widget’s front-end markup.
Price — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} ul.products li.product .price`.
Price — Sale Price ColorWrites CSS `color` onto the widget’s front-end markup.
Price — Regular Price Color (Strikethrough)Writes CSS `color` onto the widget’s front-end markup.
Price — MarginWrites CSS `margin` onto the widget’s front-end markup.
Rating — Star ColorWrites CSS (span, color) onto the widget’s front-end markup.
Rating — Empty Star ColorWrites CSS (star-rating, color) onto the widget’s front-end markup.
Rating — Star SizeWrites CSS `font-size` onto the widget’s front-end markup. (min 8, max 30).
Add to Cart Button (Normal) — Text ColorWrites CSS `color` onto the widget’s front-end markup.
Add to Cart Button (Normal) — Background ColorWrites CSS `background-color` onto the widget’s front-end markup.
Add to Cart Button (Hover) — Text ColorWrites CSS (button, color) onto the widget’s front-end markup.
Add to Cart Button (Hover) — Background ColorWrites CSS (button, background-color) onto the widget’s front-end markup.
Add to Cart Button — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} ul.products li.product .button`.
Add to Cart Button — PaddingWrites CSS `padding` onto the widget’s front-end markup.
Add to Cart Button — Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup.
Add to Cart Button — BorderElementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} ul.products li.product .button`.
Add to Cart Button — MarginWrites CSS `margin` onto the widget’s front-end markup.
Add to Cart Button — Full WidthSwitcher inspector control (`button_full_width`).
View Cart Button (Normal) — Text ColorWrites CSS `color` onto the widget’s front-end markup.
View Cart Button (Normal) — Background ColorWrites CSS `background-color` onto the widget’s front-end markup.
View Cart Button (Hover) — Text ColorWrites CSS (cart, color) onto the widget’s front-end markup.
View Cart Button (Hover) — Background ColorWrites CSS (cart, background-color) onto the widget’s front-end markup.
View Cart Button — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} ul.products li.product a.added_to_cart`.
View Cart Button — PaddingWrites CSS `padding` onto the widget’s front-end markup.
View Cart Button — Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup.
View Cart Button — BorderElementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} ul.products li.product a.added_to_cart`.
View Cart Button — MarginWrites CSS `margin` onto the widget’s front-end markup.
Sale Badge — Text ColorWrites CSS `color` onto the widget’s front-end markup.
Sale Badge — Background ColorWrites CSS `background-color` onto the widget’s front-end markup.
Sale Badge — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} ul.products li.product .onsale`.
Sale Badge — Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup.

Content and Style tabs from this widget’s PHP, including repeater fields and group controls (typography, background, border, shadow). Elementor’s Advanced tab is core Elementor and is not listed here.

FAQ

Which WC Product Category options need King Addons Pro?

Controls marked with the Pro icon in this widget’s PHP. King Addons Pro is a separate license from Elementor Pro.

Does WC Product Category require WooCommerce?

Yes. Install WooCommerce and add products (or complete a cart) before this widget has anything to show.

Do I need Elementor Pro?

No. King Addons runs on free Elementor. Some King Addons options (for example template-in-accordion, extra popup conditions, parts of the template catalog) need King Addons Pro — not Elementor Pro.

Related woocommerce widgets

Get King Addons

One free plugin. 80+ Elementor widgets, 650+ templates, and 4,000+ sections. Search for WC Product Category after you activate it.

Get King Addons