Template Files Override

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.

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

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

    • Related Articles

    • Enabling Full Template Support

      WP Event manager uses custom post types, therefore, post archives can be enabled and fully themed. You can create template files for archives of events using WordPress Template Hierarchy. Note: For the single event listings, WP Event Manager by ...
    • How to override archive template

      In order to override the Archive Template files, please follow the steps mentioned below: Copy your template file – wp-content/plugins/wp-event-manager/templates/content-event_listing_category.php Paste the file in your child theme: ...
    • List of all the default template and fields given in core and Premium Add-ons

      The default templates offered by WP Event Manager are mentioned below. The default fields & default template available in the core plugin are as follows: WP-Event-Manager Account-signin.php Content-event_listing.php Content-no-events-found.php ...
    • Enable Trace and Debug Javascript file logs

      Enable or disable debugging and trace javascript and other files with the Event log Plugin. Installation You can install Event Logs plugin using 2 different ways: Automatic Installation: You can install a plugin from the backend of your WordPress. ...
    • Add custom field in Search filter

      It is possible for the users of WP Event Manager to add new filters to the event search form. In this guide we will show you how you can do it. Creating a custom event search filter WP Event Manager’s [Events] shortcode shows a search filter on the ...