How To Customize / Override The Template File

WP Event Manager Plugin has a “templates” directory which contains all the templates files for rendering views at the frontend side. This “templates” folder also includes the “form-fields” directory which contains all the form control template files.

Overriding template files via a theme
You can customize the template file by overriding it via your theme.
1. Create a new folder “wp-event-manager” inside your theme folder. e.g yourtheme/wp-event-manager.
For example, you want to override plugins/wp-event-manager/content-summary-event_listing.php, then you can copy this file into your theme/wp-event-manager. Here we have shown an example with the Twenty Twelve theme.

2. Update the custom version in the future to maintain compatibility if the files are updated in the core plugin. Hence the template file which needs to be customized should only be overwritten.
Overriding template files through code
WordPress Plugin developers can also override template files by applying the “event_manager_locate_template” filter.

This will return the template path which was going to be overridden.
Check here how – https://wp-eventmanager.com/knowledge-base/template-files-override/

More info about WP Event Manager: https://wp-eventmanager.com
WP Event Manager Channel: https://www.youtube.com/channel/UCnfYxg-fegS_n9MaPNU61bg

🙋‍♂️ Have a question? Leave a comment below and I’ll do my best to respond.

Facebook: https://www.facebook.com/wpeventmanager/
Twitter: https://twitter.com/wp_eventmanager
Linkedin: https://www.linkedin.com/company/wp-event-manager/
Github: https://github.com/wpeventmanager/wp-event-manager