Hi,
we are using enfold and “the events calender” plugin. enfold has some built-in templates and styles which overrides the plugin. I want to disable that behaviour. But i dont want to delete files from enfold or edit the themes functions.php file. because that is not sustainable when we update everything.
So is there a way to disable it in the enfold child theme? e.g. via a filter?
This should work: “themes/enfold-child/tribe-events/single-event.php”
But it gets overridden by this template: “enfold/config-events-calendar/views/v2/default-template.php”
Child changes should always overrule the ones from the main theme. We would be really happy if you can find a solutions with us.
Greetins, dualwerk
Hey DUALWERK,
Thank you for the inquiry.
You can use this code in the functions.php file to disable all theme modifications for the events calendar plugin.
add_theme_support( 'deactivate_tribe_events_calendar' );
This will revert the events template to default, which may look a bit different from the default theme styles and layouts.
Best regards,
Ismael
Perfect, thanks Ismael!