Add Ajax Filter widgets to your site

You are here:
Estimated reading time: 2 min

To add filter widgets, access Appearance > Widgets and add them in one of the following sidebars:

  • Shop Sidebar . Plain simple sidebar eg: Amsterdam Demo
  • Filter Panel. Filters will be shown in a side panel that opens on clicking the FILTER button on the top right side of the products eg: London Demo .
  • Filter Top Bar . Will show the filters (as dropdowns) before the product listing eg: Melbourne Demo .

All the sidebars above will be shown in the frontend automatically only when they have widgets inside them.

Rey Filters widgets:

  • Filter by Attribute . Displays attributes, styled depending on their attribute type. Read more on Variation Swatches.
  • Filter by Category;
  • Filter by Price;
  • Filter “In Stock” items;
  • Filter “On Sale” products;
  • Filter “Featured” products;
  • Filter by Tags;
  • Filter by Custom fields (Meta data) . How to work with this widget;
  • Filter by custom taxonomy. Used when you use a plugin that uses a custom taxonomy and want to make it available for filters;
  • Active Filters . Displays the active filters that are in use, along with a reset button.

All of the above widgets have the option to either display as a list (and depending on the type, either as colored boxes or buttons) and as dropdowns.

Markup 2020-08-03 at 14.38.37.png
Rey’s built-in widgets have a “Rey Filter” in their title

WooCommerce built-in filter widgets:

WooCommerce comes packed with a bunch of widgets that filter too, however they’re reloading the page:

  • Filter Products by Attribute
  • Filter Products by Rating
  • Filter Products by Price
  • Product Categories (not a filter widget but good enough to use)

How to add filtering widgets into an Elementor built page

Usually filtering widgets are limited to WooCommerce catalog pages, which are auto-generated. Elementor edited pages are not, they’re just pages. This is an important difference between them. So to make possible the use of filtering widgets into an Elementor page, please follow these steps:

1. Enable filtering in Product grid element.

While editing the page in Elementor, you’ll likely end up using the Product Grid element. Make sure to enable the “Page uses filters” option, eg: . This will add a meta flag to this page to let it know that it’ll be used as a product catalog and it’s ok to load the filters.

2. Use the Sidebar element

First, please access Appearance > Widgets and make sure to add filtering widgets in one of the sidebars positions.

Now back in Elementor, make sure to create a new column, and inside it add the Sidebar element and choose the Sidebar position you added the widgets into.

*In the future i will try to make adding the widgets directly, but at the moment only Sidebar is possible.

How to work with Filter by Custom Fields (Meta data)

Access Customizer > WooCommerce > Ajax Filters and at the very bottom please register the queries eg: . You will need to label it and add a meta_key, meta_value and comparison operator.

After you registered the queries, please access Appearance > Widgets and create a new Filter by Custom Fields widget.

You will need to choose which registered queries to display eg: .

Was this article helpful?
Dislike 0
Views: 1968

12 Replies to “Add Ajax Filter widgets to your site”

  1. dianam

    Hello, how can I change the filter panel header “RESET FILTERS”?

    Thank you!

    1. mariushoria[ Post Author ]

      Hey Diana!

      There isn’t any option, nor the text has any hooks on it to be edited. So the most basic and fastest solution is to use Loco Translate plugin, scan Rey Core plugin and search & edit the “RESET FILTERS” text.

      Hope it helps!

  2. Jan


    I am trying to add to add filter for sizes in my Shop Sidebar. When I inspect the page, I can see the title is there but it is hidden by style.css.
    I have the variations set properly and they are displaying well in the product pages. Why cannot I get the filter in my side panel working? Is it because I need pro version of swatches plugin after all?

    Site is but will be moved to soon.

    Thank you!

    1. mariushoria[ Post Author ]

      Hi Jan,

      No, the pro version of the swatches plugin is not needed for this purpose. I may need to take a closer look at how the attributes and variations are added. Please try creating a temporary admin account for me. Thanks!!

      1. Jan

        Is the ticketing support system ok? I logged a ticket 2nd time. Once about a monh ago – got no reply, no ticket number. Now I logged a new one, still confirmation of the ticket creation.

  3. Zain Alam


    my client purchased “Rey Theme” and I’m creating a website for my client but the problem is,

    1-> How can I create a sidebar like this also when I’ll click on the filter then the filter will show. currently, it shows like this

    2-> how can I add “Paypal Checkout” and “Recent Viewed” option in the cart like this

    3-> I want my product page to look like this one but right now it shows like this

    Please help me to solve these problems……………………………..

    1. mariushoria[ Post Author ]

      Hey there!

      Let’s see:

      1) Try accessing Appearance > Widgets and place the filtering widgets into the Shop Sidebar eg: . Afterwards access Customizer > WooCommerce > Product catalog – Layout and make sure the Sidebar is placed on the left side eg: .

      2) A recent viewed option is not available, but i just love the idea. I will try to prioritize it in the upcoming update, but i can’t make any exact promise as i’m struggling with some tasks. Onto the Paypal Checkout, you will need to use a plugin such as Stripe or Paypal Express Checkout to implement it.

      3) For the Paypal, please check 2) . For the Buy Now button, it’s only possible through code. Try adding this php code from here into the child theme’s functions.php .

      One request please, try using to create a new ticket so i can verify the purchase and also to manage tickets better.


      1. Zain Alam


        I created a ticket to get support but no one replied to me, can please check it?

        And please notify me also to my email.

        Please delete this comment after reading this.

        Thank you

  4. Zain Alam

    Thank you so much for your response.

  5. Niklas Poulsen

    Hi, How to use the sidebar – responsive? So the filters for shop page will be working correctly in mobile view?

    1. mariushoria[ Post Author ]

      Hi Niklas,

      Problems usually occur when trying to publish filtering widgets in multiple Sidebars. Try accessing Customizer > WooCommerce > Ajax Filters eg: and make sure to pick the sidebar that you want to be opened by the filtering button. Hope it helps!


  6. Kuba

    1. Is it possible to add option field to product tag filter widget to choose tags to be used in a filter, instead of using all product tags?

    2. I would like to make few tag filters i.e.:
    – filter 1 with tagA, tagB, tagC
    – filter 2 with tagD, tagE
    to select products which have f.e. tagB AND tagD

    I realize it is programming related but maybe You would give me some hint related 1 or 2, or both 🙂

    thanks in advance

Join the conversation