Home › Forums › Calendar Products › Filter Bar › Filter bar not opening on mobile
- This topic has 19 replies, 3 voices, and was last updated 9 years, 7 months ago by Casey.
-
AuthorPosts
-
July 17, 2014 at 2:06 am #425267alexwg85Participant
When the filter bar goes down to mobile and closes, when you click on it, it opens for a second and then closes again.
I have uninstalled my theme and it works again. I have tried deleting all customisations in my theme and this has made no difference, which leads me to believe this might be a jQuery clash, or some sort of class that is missing somewhere.
I am on a tight deadline so help would be appreciated.
July 17, 2014 at 3:08 pm #432782CaseyParticipantalexwg85,
Thanks for getting in touch! Can you give me a URL where I can debug this issue further? Thanks! 🙂-Casey-
July 18, 2014 at 1:13 am #442213alexwg85ParticipantJuly 18, 2014 at 9:34 am #445920CaseyParticipantSomething strange is happening in your theme that seems to be causing the Javascript ‘click’ event to fire twice. I’m noticing similar behavior with your mobile menu as well. You might see if there’s some custom Javsacript, or another plugin’s javascript that’s causing this strange behavior, as I’m unable to replicate using the Default 2013 theme.
Hopefully that helps to shed some light on the issue for you. Good luck! 🙂
July 21, 2014 at 2:15 am #468676alexwg85ParticipantI had a closer look at the jQuery and found the issue that was causing my mobile menu from behaving the same as the filter bar but it has not fixed the filter bar. I am now getting this error in my console: ‘cannot call methods on isotope prior to initialization; attempted to call method ‘reLayout”
July 21, 2014 at 7:05 am #470715CaseyParticipantalexwg85,
It appears that you’re including jQuery in your theme twice. It’s possible that’s causing the issue.July 21, 2014 at 7:09 am #470763alexwg85ParticipantI don’t think I am. I have it in the header and that’s it. Where else have you seen it?
July 21, 2014 at 12:51 pm #473173CaseyParticipantI’m seeing it here: http://grab.by/yLiu and here: http://grab.by/yLiy
July 22, 2014 at 1:08 am #477796alexwg85ParticipantYes, that is one occurrence. Where is the second one you mentioned.
July 22, 2014 at 1:12 am #477834alexwg85ParticipantSorry, I didn’t see your second one. Let me check this over again.
July 22, 2014 at 2:03 am #478107alexwg85ParticipantThe extra jQuery file you saw comes bundled with WordPress so there is nothing I can do about it. I tried removing my instance of jQuery and it broke not only my menu, but the event calendar as well.
July 22, 2014 at 6:29 am #479653CaseyParticipantalexwg85,
You should never need to include jQuery separately in your theme, as it’s already being included by WordPress. I would suggest that you look at this article in the codex that talks more about how WordPress includes jQuery (and the proper way to to reference it in your scripts), and hopefully you can remove the duplicate jQuery library.Good luck! 🙂
-Casey-
July 22, 2014 at 7:27 am #480108alexwg85ParticipantOkay, this has been taken care of now but I am still getting the same problem with the filter bar.
July 22, 2014 at 9:25 am #480745CaseyParticipantalexwg85,
Are you seeing the same issue when switching over to the default 2013 theme? I suspect that this is an issue with something in your custom theme, but want to confirm.July 23, 2014 at 1:14 am #486968alexwg85ParticipantI have tried switching it back to the default theme and it works fine. It is something in my theme.
-
AuthorPosts
- The topic ‘Filter bar not opening on mobile’ is closed to new replies.