Show 'No Matching Results' text with MixItUp Plugin

Greetings All,

I’m trying to figure out a way to show ‘no matching results’ text when no results are found from select fields on the workouts page. Wondering if it’s something I could add to the code or if it would be best to do something within the designer to accomplish.

Any help is appreciated. Thanks all!

Screenshot Attached of how it currently looks when no results are matching/found.52%20AM

Here is my site Read-Only: **[]

Tuturial (By HTML) -

Take this ideas to webflow


HTML side (webflow tree)

Create an alert message - with id of #noItemsFoundMessage

<div id="noItemsFoundMessage"><h1>No Items Found! <a class="filter-btn" href="#" data-filter="all">clear all filters</a></h1></div>


B javascript side

1. simple hide/show by display:none / block;

Later we put this code inside the “if” statement + hide the alert by deafult

    var noItemsFoundMessage = document.getElementById("noItemsFoundMessage"); = "none";

2. ## MixItIP API - onMixEnd event

onMixEnd. A custom event triggered after any MixItUp operation has completed, and the state has been updated. docs


3. ## MixItIP API - state-object --> hasFailed

Use state-object

hasFailed - A boolean indicating whether the last operation “failed”, i.e. no targets could be found matching the filter.

Great :slight_smile: we use this state to show/hide the alert message.

// ## 1 - hide alert message by deafult 
var noItemsFoundMessage = document.getElementById("noItemsFoundMessage"); = "none";

//  MIXITUP 3 plugin settings
    mixitup('#mix-wrapper', {   
          // ## 2 - callbacks onMixEnd 
         callbacks: {
         onMixEnd: function(state){
           // ## 3 - hasFailed true? show alert
     = "block";
              alert("No items found");
           // ## 3 - hasFailed false? hide alert
     = "none";
              alert("Items found");
      }, //end of callback

    /// rest of the code....

Extra effects

If you want to show/hide the message with some fade animation - one way is by jquery show/hide functions:

Collapse height

You want the message to “collapse” (no height) otherwise you get “jump” effect - so set the parent to position: relative and the text to position: absolute;

<div style="position: relative;" id="noItemsFoundMessage"><h1 style="position:absolute;">No Items Found!</h1></div>

1 Like

@Siton_Systems Thank you so much for providing all this great info. I’m going to try to apply it to my project today and let you know how it goes. Really appreciate the extra effects and collapse height info.

@Siton_Systems When you have a moment could you please take a look at my project ( to see where I might’ve gone wrong because the message is not showing when there are no matching filters?

Workout Page URL (Not showing in errors in console):

Please and Thank you.

Create new/empty page. And do tests (Like my simple codepen) until it will work. Its hard to debbug your example (Endless options and menus).

Working webflow example:

Readonly example (please copy-past this. 3-4 days from now i delete this link)

By the way - you could ask this Q in mixitup forums -or- stackoverflow (Maybe thier is easier way to solve this).

I thinks you could check if “collection-list” number of childres is “zero” - and thats it (Without mixitup API):

1 Like