Skip to content
WXP Plugins

Plugins

WXP Restaurant Menu

WXP Opening Times

WXP Local Events

WXP Restaurant Reservations

Demo

Pricing

Support

Docs

FAQ

Buy

Menu

Plugins

- WXP Restaurant Menu

- WXP Opening Times

- WXP Local Events

- WXP Restaurant Reservations

Demo

Pricing

Support

- Docs

- FAQ

Buy

WXP Opening Times

8
  • Installation
    • Installing WXP Opening Times
  • Basic operations
    • Creating your (first) schedule
    • Setting exceptions
  • For developers
    • Filter- and action hooks
    • Twig templates
    • WXP Opening Times shortcodes
  • Jewish and Islamic holidays
    • Installation
      • Installing WXP Opening Times: Jewish and Islamic holidays
    • For developers
      • Jewish and Islamic holidays: for developers

WXP Restaurant Menu

11
  • Installation
    • Installing WXP Restaurant Menu
  • Basic operations
    • Understanding the concept
    • The Settings for the WXP Restaurant Menu Plugin
    • The Icon menu
    • The Sets Menu
    • The Tags Menu
    • The Groups Menu
    • The Categories menu
  • For developers
    • Filter- and action hooks
    • Twig templates
    • WXP Restaurant Menu shortcodes

WXP Local Events

8
  • Installation
    • Installing WXP Local Events
  • For developers
    • Filter- and action hooks
    • Twig templates
    • WXP Local Events shortcodes
  • Local Events for WooCommerce
    • Installation
      • Installing WXP Local Events for WooCommerce
    • For developers
      • Local Events for WooCommerce: for developers
  • Events Feed
    • Installation
      • Installing WXP Events Feed
    • For developers
      • Events Feed: for developers

WXP Restaurant Reservations

6
  • Installation
    • Installing WXP Restaurant Reservations
  • For developers
    • Filter- and action hooks
    • Twig templates
    • WXP Restaurant Reservations shortcodes
  • Rooms
    • Installation
      • Installing WXP Restaurant Bookings: Rooms
    • For developers
      • Rooms: for developers

General Developer Information

1
  • Twig
    • Twig templates in the WXP plugins

WXP Agency Kit

1
  • WXP Agency Kit: demo content from the command line
View Categories
  • Home
  • Documentation
  • WXP Local Events
  • For developers
  • Twig templates

Twig templates

3 min read

0:00 / 2:52
  • View as Markdown Open this page as plain Markdown (opens in a new tab)
  • Open in ChatGPT Ask questions about this page (opens in a new tab)
  • Open in Claude Ask questions about this page (opens in a new tab)
  • Open in Google AI Studio Ask questions about this page (Google account required) (opens in a new tab)

The calendar, the event page, the reservation form and the e-mails of WXP Local Events are Twig templates. This guide lists the templates, the values they receive and how to make your own. For an introduction to Twig and the lookup order, see General Developer Information → Twig.

Templates #

File Name What it is
default.html.twig Default The calendar: a month grid and a list of events. Used by the shortcode [wxp_events], the block and the widget through the template parameter.
single.html.twig Event page What the plugin adds to the page of an event: the details above the text, the next dates and the reservation form below it.
reservation-form.html.twig Reservation form The reservation form of one event. Also used by [wxp_event_reservation_form].
mail-simple.html.twig Simple A plain e-mail.
mail-modern.html.twig Modern Business An e-mail with a coloured header and a button.
_base.html.twig, _month.html.twig, _list.html.twig, _popup.html.twig Partials The wrapper of the calendar, the month grid, the list grouped by month and the popup with the basics of an event.

A template name that does not exist falls back to default.

Your own template #

  • Copy the file to wxp-local-events/ in your child theme. A file with the same name replaces the original; a file with a new name can be chosen with the template parameter.
  • Copy default.html.twig for a calendar. It extends _base.html.twig and fills the block body. When a visitor changes the month or the view, only this block is rendered again.
  • Keep the data-wxp-le-* attributes. The script finds the buttons, the popup and the form with them.
  • The layouts of the event page (standard, picture, card and compact) are in single.html.twig: it receives the chosen layout in layout, and the layouts differ in the picture and in the CSS. The title, header and footer stay those of your theme.

Values in the templates #

Template Name Contents
Calendar view month or list.
Calendar calendar label, prev, next, weekdays (each with short and long) and weeks (days with in_month, is_today, is_past and cards).
Calendar groups The list of coming events by month: each group has a label and cards.
Calendar and page card One date of an event: title, url, weekday, day, state, full, color and more.
Event page content, form, layout, card The text of the event (HTML), the reservation form (HTML), the chosen layout and the current date.
Reservation form form event, reservable, dates and notice.
E-mail subject, lang, intro, note, venue The subject, the language code, the opening text, an extra note and the name of the venue.
E-mail rows, button, cancel, cancel_url, color, site_url The details (each with label and value), the button, the cancel link, the accent colour and the address of the website.
All labels, box_id Translated texts and a unique id on the page.

Add your own values with the filter wxp_local_events_template_context (see Filter- and action hooks).

Updated on October 30, 2026

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Filter- and action hooksWXP Local Events shortcodes
Table of Contents
  • Templates
  • Your own template
  • Values in the templates
WXP Plugins

Demo

Pricing

© 2026 WXP Plugins. All prices are in euro, excluding VAT.

WXPPlugins is a brand of WP Digital Marketing - The Netherlands - Chamber of Commerce (KvK) 75580152