Join our webinar on how you can create an event ticketing system with us on 28th Feb at 10:00 PM IST and get 20% discount. Register Now!
How can we help?

Template Files Override

In this guide, we will show you how you can customize or edit single event listing pages.

WP Event Manager plugin has a templates directory that contains all the template folders. This template folder includes form-fields directory.

Wp Event Manager Template Form Fields

Overriding template files via a theme

You can customize the template file by overriding it through your theme.

  1. Create new folder “wp-event-manager” inside your theme folder. e.g yourtheme/wp-event-manager.
  2. 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 yourtheme/wp-event-manager. Here we have shown example with Twenty Twelve theme.
    Wp Event Manager Overriding Template Files Via A Theme

  3. 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 file through code

WordPress Plugin developers can also override template files by applying the “event_manager_locate_template” filter.

return apply_filters( 'event_manager_locate_template', $template, $template_name, $template_path );

This will return the template path which was going to be overridden.

Ashok Dudhat

Avatar Of Ashok Dudhat

Our team constantly explores ways that technology can help us reinvent industries. We want to change the world by creating great products that transform industries. We Dream It, We Make It.

Quick Links