Support

Home Forums Event Espresso Premium Calendar Filters not working

Calendar Filters not working

Posted: July 29, 2020 at 11:09 am

Viewing 1 reply thread


wnyhe

July 29, 2020 at 11:09 am

I have deactived all the plugins except for the EE add ons Filter still not working
http://wnyhe.wwdemo.com/test-schedule/ This is the dev site


Tony

  • Support Staff

July 30, 2020 at 4:54 am

Hi there,

This is actually from your theme, Divi, disabling any links with an anchor set if the element exists on the page.

When you click on those filters they basically reload the page and pass the category plug to the calendar, it does this using a link this:

?event_category_id=acls#espresso_calendar

Divi is pulling any link with an anchor (the #{something}) and only allowing them to scroll to the element for that anchor which is not the default browser behaviour, especially when the query string is set.

Their fix for this is an ever-growing list of ‘do not disable these buttons’ section in the custom.js file of the theme.

One option to prevent prevent it from happening is to use some jQuery to remove the anchors from those links using something like this:

https://gist.github.com/Pebblo/2fe9648492d16108d121311c70235652

You can add that to a custom functions plugin on your site and we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Viewing 1 reply thread

The support post ‘Calendar Filters not working’ 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