Filters not finding any matches

Home Forums Calendar Products Events Calendar PRO Filters not finding any matches

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #117678
    crunch
    Participant

    Hello, I’ve all of a sudden encountered a problem on the filtering. When i tick off for instance a category I know has an event, it simply doesn’t show up and it just returns that “There were no results found”.

    Any idea why this is? I swear it worked until very recently.

    #117865
    Barry
    Member

    My suspicion is that your theme – or another plugin – is using something called a polyfill script and it is misbehaving: the reason for this is the URL that results from using the filter bar:

    yoursite.com/events/?action=tribe_list&tribe_paged=1&tribe-bar-date=Dato

    Note the tribe-bar-date=Dato element. I see you already tried some troubleshooting steps, but in addition to deactivating all other plugins can I ask you to switch to a default, unmodified theme such as Twenty Twelve and see if you can still reproduce the problem under those conditions?

    Thanks

    #117941
    crunch
    Participant

    That definitely helps. I switched to Twenty Fourteen and the filtering then works.
    Is there any way I can work around the misbehaving polyfill script and thus use my theme?

    #118326
    Barry
    Member

    There probably is a means of doing that. Can you touch base with the theme author and make some enquiries:

    • Can they give you a snippet to knock out the poly-fill script altogether? (Even if you don’t want it removed completely, if it’s a simple matter of dequeuing a script we can probably add some conditional code so it only affects event pages)
    • If not, can they confirm if a class or some other wrapper can be applied to elements to “exempt” them from the poly-fill’s attention?

    I hope that helps – but let us know how you get on 🙂

    #119612
    crunch
    Participant

    Thanks for the advice! I asked the theme developer and they told me it’s apparently a placeholder script but seemed all at a loss for why it was actually there.

    Anyway this is what I removed in the js/scripts.js file:

    $(“[placeholder]”).each(function(){
    if( $(this).val() === “” && $(this).attr(“placeholder”) !== “” ){
    $(this).val($(this).attr(“placeholder”));
    $(this).focus(function(){
    if($(this).val() === $(this).attr(“placeholder”)) { $(this).val(“”); }
    });
    $(this).blur(function(){
    if( $(this).val() === “” ) { $(this).val($(this).attr(“placeholder”)); }
    });
    }
    });

    So far all seems to function without a hitch despite it being removed.

    #138437
    Barry
    Member

    Closing this thread out as it’s been a while without activity. Of course if you need further help on this or any other issue please don’t hesitate to create a new thread 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Filters not finding any matches’ is closed to new replies.