Support

Home Forums Event Espresso Premium Calendar category links not filtering events

Calendar category links not filtering events

Posted: April 2, 2017 at 10:12 pm


T R

April 2, 2017 at 10:12 pm

Hi there, I have categories activated (with CSS and other options activated and double checked; identical to another site that’s working) and using the Event Calendar. However when I click on one of the categories, the events in the calendar aren’t filtering. It shows scrolls the window down to the calendar.

The links are there and showing up on the event categories when I hover over them to see the URL, but when clicked, they are not filtering.

I have de-activated all plugins and used default them and the issue was still there. Also, there are no errors in the console, aside from a few CSS warnings in Event Espresso’s files.

Can you please let me know what might be causing this, you can see the page here: http://siwa.wpengine.com/calendar/

You’ll need to enter credentials to see the site (still in development):
User: demo
Pass: d0071b

Thank you.


Tony

  • Support Staff

April 3, 2017 at 10:18 am

Hi there,

When you clikc on the calendar category legend the page should reload with the category set within the query string – http://take.ms/6iO1G

Something is preventing that from happening on click but if you navigate to the link directly:

http://siwa.wpengine.com/calendar/?event_category_id=interest-groups#espresso_calendar

it works as expected.

So something is preventing the default behavior of the buttons, previously when we’ve seen this when themes add some JavaScript to prevent links on the same page loading the page. If you temporarily switch to a default theme such as twentyfifteen do those buttons work correctly?


T R

April 4, 2017 at 9:36 am

Yeah I saw that the link itself works, but is just not re-loading when clicked. I switched to default 2017 and it did work. So how can I get it to work on my theme?


Tony

  • Support Staff

April 5, 2017 at 3:35 am

You’ll need to contact the theme author and find out how to prevent their JavaScript from targeting all of your links.

Or add your own on the calendar page that forces the link to reload the page, something like this should work:

jQuery(".ee-category a").click(function() {
  window.location = $(this).attr("href");
});


T R

April 13, 2017 at 12:31 am

Nice, that seemed to have resolved it and the calendar links working now. Thank you!

The support post ‘Calendar category links not filtering events’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso