Elementor Loop Grid WooCommerce Filter Not Working: How to Fix It
You tick a filter on a shop built with Elementor and the Loop Grid keeps showing every product, applies only the first of several selected values, or the category template turns into a plain WooCommerce list after filtering. When the Elementor Loop Grid WooCommerce filter is not working, the cause depends on two things: which Elementor element prints the products, and whether HUSKY's AJAX mode is on. Identify the element first; each one has its own fix.
Which Elementor element shows your products
HUSKY does not draw the product grid. It adds its conditions to WooCommerce's product queries: the main query of the shop and of category, tag and attribute archives, queries built through WooCommerce's [products] shortcode, and its own [woof_products] shortcode. An Elementor element that builds its own query does not hear the filter.
| Element | Follows the filter | What to do |
|---|---|---|
| Archive Products widget, or Products widget with Current Query, in a Theme Builder product archive | Yes, it uses the shop's main query | Redirect mode keeps the design; see the archive section for AJAX mode and category templates |
| Products widget with its own query source (latest, sale, featured products) | Normally yes: the widget is built on WooCommerce's products shortcode | Nothing special; filtering reloads the page |
| Loop Grid with a product loop template | No, it runs its own query | Make the query follow the filter, or replace the element |
| Product grids of add-on packs (WooLentor, Premium Addons, Unlimited Elements, JetWooBuilder and similar) | Usually no | Same as Loop Grid |
Shortcode widget with [woof_products] | Yes, also with AJAX | Works anywhere; uses the theme's WooCommerce product card |
Three quick checks tell you which case you have:
- The URL after filtering contains
swoof=1and your choices. Then the filter did its part; the element ignored the request. - A control element. Put a Shortcode widget with
[woof_products per_page=4]next to your grid, filter, and compare. If the shortcode filters and your grid does not, the grid runs its own query. - The AJAX area. Open the page source (Ctrl+U) and search for
woof_results_by_ajax. Without it there is nothing for AJAX mode to swap, and every filter change reloads the page even with AJAX on.
Loop Grid and add-on widgets: make their query follow the filter
A Loop Grid asks the database for products by itself, so it keeps listing the whole catalog. You have three ways out, from "keep the loop design" to "least code".
Keep the Loop Grid: restrict its query with pre_get_posts
A small snippet asks HUSKY which products match the current filter and restricts every other product query on the page to them. Use the hardened version in Fix 2 of "filter URL changes but products do not change"; copy it into the child theme's functions.php or a code snippets plugin. Compared with the older code on the Elementor compatibility FAQ, it leaves wp-admin product lists alone, keeps page 2 and further pages of the grid filtered, and shows "nothing found" instead of the whole catalog when no product matches. Do not run both snippets at once; replace the old one.
Then adjust the setup:
- Filtering must reload the page: the snippet filters the grid while the filtered URL loads. A Loop Grid has no AJAX area, so this happens by itself; if the page also has one (check 3 above), set Try to ajaxify the shop to No (WooCommerce → Settings → Products Filter → Options), otherwise only that area is updated.
- On a regular page (not a Theme Builder archive), the filter sends its results to the shop page unless it finds a WooCommerce product list or
[woof_products]on the page, and a Loop Grid is neither. Tell it to stay:/** * HUSKY: keep filter results on the page with the Loop Grid. * Child theme functions.php or a code snippets plugin. */ add_action( 'wp_footer', function () { if ( is_page( 123 ) ) { // ID of the page with the Loop Grid echo '<script>var woof_not_redirect = 1;</script>'; } } ); - The snippet affects every product query on a filtered page, including "related" or "best sellers" carousels. To keep it to one page, uncomment its
is_page()line and enter the ID of that page. - Add the snippet only where an element really runs its own query. Where the Archive Products widget shows the products, it is not needed; remove it if you added it there earlier.
- Check the link to page 2 of the grid after filtering: it must still contain
swoof=1and the selected values. A "load more" or infinite-scroll mode that fetches the next page without them shows unfiltered products from page 2 on; try numbered pagination and check its links again.
Switch to the Products widget
Elementor Pro's Products widget normally follows the filter without any code: on archives with Current Query, elsewhere with its own query source. If its card design, styled in the widget's own controls, is enough for you, it is the simplest replacement for a Loop Grid.
Use the [woof_products] shortcode
A Shortcode widget with the plugin's [woof_products] shortcode filters on any page and supports AJAX:
[woof_products per_page=12 columns=4 is_ajax=1]
It renders each product with your theme's WooCommerce card (content-product.php), not with an Elementor loop template. On a page that should show one category, give the filter and the product list the same condition: [woof taxonomies=product_cat:25] and [woof_products taxonomies=product_cat:25 per_page=12 is_ajax=1], with your category ID in place of 25.
Several values selected, but only the first one applies
With OR logic between the values of one attribute, selecting red, blue and green should show products in any of the three colors. If a Loop Grid set to Current Query on an archive template shows only the red ones, the Loop Grid builds its query from the request in its own way and keeps only the first value. The filter itself is fine: the same request shows the right products in the Products widget or in [woof_products].
Replace the Loop Grid with the Products widget set to Current Query, or with [woof_products]. Also check that the attribute really uses OR: open the attribute's additional options in the Structure tab and look at Logic of filtering. AND only works for filter types that allow several values, such as checkboxes.
Theme Builder archives: lost design and the wrong template
AJAX results look like a plain WooCommerce list
If the AJAX area exists inside an Archive Products widget, the products are swapped in place after each filter change, but the new HTML is rendered on the server by [woof_products] from WooCommerce's standard parts, outside the Elementor page render. Elementor's classes and widget settings are not in it: the products lose the widget's grid, spacing and button texts. How AJAX mode rebuilds the grid is explained in AJAX filter breaks the product grid layout.
The reliable fix is Try to ajaxify the shop = No: the filtered URL is rendered by Elementor and looks exactly like the template. If you want to keep AJAX, patch the response with the woof_draw_products_html filter so Elementor's grid CSS applies again:
/**
* HUSKY AJAX results inside an Elementor Archive Products widget:
* add the class Elementor's grid styles expect.
* Child theme functions.php or a code snippets plugin.
*/
add_filter( 'woof_draw_products_html', function ( $html, $shortcode_str ) {
return str_replace(
'<ul class="products columns-',
'<ul class="products elementor-grid columns-',
$html
);
}, 10, 2 );
Before you use it, inspect the product list on a fresh page load and confirm the class names on ul.products; take them from your page if they differ. Remaining differences, such as a button that was wrapped in an extra element or a changed label, are easier to fix with a few lines of CSS than in PHP. If the column number changes after filtering, set it with loop_shop_columns as shown in the layout article.
A filtered category page uses the shop template
While a filter is active, HUSKY by default marks the request as the product post type archive and switches off WordPress's "taxonomy archive" flag. Elementor's display conditions then see the shop instead of a category: a template assigned to "Product categories" is replaced by the general one, and archive titles show the shop's name instead of the category. Set Disable swoof influence to Yes in Advanced → Options and test again. The details and side effects are in keep the category page when filtering.
Counts that show numbers for the whole store on a category template usually come from the filter shortcode itself: a [woof] with dynamic_recount=0 does not recount for the current category. Remove the attribute or set it to 1.
Filter inside an Elementor popup or off-canvas does nothing
HUSKY attaches its scripts to the filter form once, when the page is ready. If a popup or off-canvas inserts its content later, the filter appears but clicks do nothing, because the new form was never initialised. Open the page source and search for woof_redraw_zone: if the filter's markup is not there before the popup opens, this is your case.
Use the plugin's own slide-out panel instead: put [woof_slideout location="left"] in a Shortcode widget, or set Global visibility to Show in the Slideout tab to add it to the shop pages. Its form is part of the page from the start, so it works like any other filter. Other options are a popup that renders its content with the page, or a section you show and hide with a button.
Elementor editor does not load with HUSKY active
The editor error from older versions (Call to a member function get() on null) is handled in current releases: when the page is opened in the Elementor editor, [woof_products] skips the shop-loop hooks. Update the plugin first. If the editor still hangs only while HUSKY is active, remove HUSKY's classic WordPress widget from Elementor's panel; you keep placing the filter with the Shortcode widget:
/**
* Hide HUSKY's WordPress widget from the Elementor panel.
* Child theme functions.php or a code snippets plugin.
*/
add_action( 'elementor/widgets/register', function ( $widgets_manager ) {
$widgets_manager->unregister( 'wp-widget-woof_widget' );
} );
This uses the registration hook of current Elementor versions; the older hook in the Elementor editor conflict FAQ is deprecated there.
Checklist
- You know which element prints the products, and a control
[woof_products]filters correctly on the same page. - Loop Grid or add-on grid: the hardened
pre_get_postssnippet in place of the old one, filtering reloads the page, page 2 link keepsswoof=1. - Several values of one attribute: Products widget or
[woof_products]instead of a Loop Grid with Current Query. - Theme Builder category template: Disable swoof influence = Yes; AJAX off, or the response patched with
woof_draw_products_html. - Filter in a popup: replaced with
[woof_slideout]. - Caches purged and the result tested in a private window.
If the control shortcode works and your Elementor element still does not, open a topic on the HUSKY support forum with a link to the page and the name of the element and add-on that shows the products.