Home › Forums › Calendar Products › Events Calendar PRO › Filters not finding any matches
- This topic has 5 replies, 2 voices, and was last updated 12 years ago by
Barry.
-
AuthorPosts
-
March 12, 2014 at 5:04 am #117678
crunch
ParticipantHello, 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.
March 12, 2014 at 8:21 am #117865Barry
MemberMy 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=DatoNote 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
March 12, 2014 at 10:41 am #117941crunch
ParticipantThat 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?March 13, 2014 at 10:18 am #118326Barry
MemberThere 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 🙂
March 17, 2014 at 2:00 am #119612crunch
ParticipantThanks 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.
April 21, 2014 at 8:00 am #138437Barry
MemberClosing 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 🙂
-
AuthorPosts
- The topic ‘Filters not finding any matches’ is closed to new replies.
