Managing Selectors in Product Filters

Troubleshooting & Debugging
Updated Nov 8, 20263 min read

If filters appear but products do not change, the cause is usually a selector. A selector is a short code that tells the plugin where your theme keeps its products or page numbers. Themes differ, so sometimes it needs your help. The plugin has a tool that shows you what is wrong.

Step 1: Check with the built-in tool

  1. Log in as an admin, and open a page with filters and products.
  2. Look at the WordPress bar at the top of the page, and hover over the Product Filter item.
  3. Read its message:
MessageMeaningFix
Filter working fineEverything was found.Nothing to do.
Filter is not addedThis page has no filter.Add one.
Products are not found (a popup may also say Product Selector Not Found)The selector matches nothing here. The page may have no products, or your theme may use different markup.If the page has no products, add them, such as [products]. If it has, follow Step 2.
Pagination is not foundThe page numbers were not found.Follow Step 2 for Pagination Selector. If the page has only one page of products, you can ignore it.

Step 2: Find the right selector

  1. Right-click a product on your page and choose Inspect. A panel opens with the page’s code.
  2. Move up through the code until the whole product list is highlighted.
  3. Note the class of that box. For <div class="shop-grid">, your selector is .shop-grid, with a dot in front.

Step 3: Save it

  1. Go to Product Filters > Advance Settings.
  2. Type it into the matching field.
  3. Click Save Changes, clear your caching plugin’s cache, and test the page.
Product Selector setting in the product filter Advance Settings

All the selector settings

SettingDefault
Product Selectorul.products. Pro also tries .products and Avada’s post cards.
Pagination Selector.woocommerce-pagination
Sorting Selectorform.woocommerce-ordering select
Result Count Selector.woocommerce-result-count
Product Shortcode Selectorproducts

Pagination also has an advanced settings popup.

For one page only

If only one page differs, leave the main settings alone. Set the selector just for that page, in the block or widget settings, or in a shortcode:

[plugincy_filters product_selector=".shop-grid"]

Other checks

  • Caching: clear your caching plugin’s cache, and click Clear Cache under Advance Settings.
  • Script optimisers: a plugin that combines or delays scripts can stop filters. Try excluding this plugin’s scripts.
  • Browser errors: press F12 and open Console. A red error may name another plugin that is causing the problem.

If you are still stuck, contact our support with a link to the page and the message from the Product Filter menu.