Override Templates

There are few ways to customize default output of TimeTable content, event page, category layout, widgets, etc:

– using actions and filters.
– overriding plugin templates

Override post type page and category templates

In order to override plugin templates you should copy template file from plugin folder, paste it to root folder of your active theme and modify this file.

For example to override Event page template you should copy file at
wp-content/plugins/mp-timetable/templates/single-mp-event.php
paste to
wp-content/themes/yourtheme/single-mp-event.php
and modify it.

Override parts of page templates

In order to modify parts of template you can also use actions and filters. Or you can override file completely. Note: you should create proper structure:

For example: to override Sidebar Widget layout you should copy the following file
wp-content/plugins/mp-timetable/templates/widgets/ widget-view.php
paste it to
wp-content/themes/yourtheme/mp-timetable/widgets/ widget-view.php
and modify it.
If your active theme is Child one the template should be copied to its folder
wp-content/themes/yourtheme-child/mp-timetable/widgets/ widget-view.php

Templates Search Priority

  • Child Theme
  • Parent Theme
  • Plugin

2 Replies to “Override Templates”

  1. Hi, I installed timetable and started entering appointments. Now I have the problem that some appointments overlap and are not visible. So I changed the height of the row and also adjusted the time to 15 (0.25) minutes. Then I update the WP page, when I preview I see the results, but not live in the browser after F5. What do I have to do?
    Thanks!

    1. Hi Uli,
      I’m sorry but I’m not sure I got the issue you described correctly. Could you provide a website link with a timetable and specify the steps to replicate the case?

Comments are closed.