Support

Home Forums Event Espresso Premium Calendar Filters not working

Calendar Filters not working

Posted: July 29, 2020 at 11:09 am


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/

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  Tony 1 week, 5 days ago ago

Topic Tags

Tagged: 

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!