Override Event Templates
You can customize the default design or content of event templates by overriding them in your theme. This ensures your changes are preserved through plugin updates.
Steps to Override Templates
- Create a folder named
mage-eventsin your theme folder. - Inside it, create a subfolder named
single. - Copy the template file from
plugins/mage-eventpress/templates(e.g.location_list.php). - Paste it into
theme-folder/mage-events/single/. - Edit the file to make your changes. The plugin will load your version instead of the default.
Create Custom Theme/Template
The plugin is fully developer-friendly. You can create custom themes similar to WooCommerce templating.
Steps to Create a New Theme
- Copy
mage-eventpress/templates/folder to your theme and rename it tomage-events. - Create a new PHP file in
theme-folder/mage-events/themes/(e.g.dhaka.php). - Add a template name at the top:
<?php // Template Name: Dhaka - Your theme will now appear in the event page template list.
Available Hooks for Custom Themes
WooCommerce Event Manager plugin comes with a bunch of hooks which you can use anywhere to display values:
Hook
mep_event_titleDisplay the event title.
Hook
mep_event_thumbnailDisplay the event featured image.
Hook
mep_event_dateDisplay event date with time.
Hook
mep_event_date_onlyDisplay event date only.
Hook
mep_event_time_onlyDisplay event time only.
Hook
mep_event_detailsDisplay event details.
Hook
mep_add_to_cartDisplay the event cart section with ticket type, extra service, and cart button.
Hook
mep_event_faqDisplay event frequently asked questions.
Hook
mep_event_mapGenerate the Google Map with event location.
Hook
mep_event_pricePrint the event price.
Hook
mep_event_seatDisplay event total seat and available seats.
Hook
mep_event_organizerPrint the event organizer name.
Hook
mep_event_locationDisplay event location as address.
Hook
mep_event_location_venueDisplay the event venue name.
Hook
mep_event_location_streetDisplay event address street only.
Hook
mep_event_location_stateDisplay event address state only.
Hook
mep_event_location_cityDisplay event address city only.
Hook
mep_event_location_countryDisplay event address country only.
Hook
mep_event_social_shareDisplay social share buttons.
Hook
mep_event_add_calendarDisplay Add to Calendar button.
Create Custom PDF Ticket Design
Design your own PDF ticket template for registered attendees.
Steps to Create PDF Theme
- Copy
woocommerce-event-manager-pdf-ticket/templates/pdf-themefrom the PDF Addon plugin. - Paste it into your theme folder and rename to
mage-events-pdf-themes. - Create a new PHP file with a template name:
<?php // Template Name: Your Theme - Design your ticket HTML. Note: some CSS attributes have limitations for PDF generation.
Available PDF Hooks
Hook
mep_pdf_logoShow PDF logo set in PDF settings page.
Hook
mep_pdf_company_addressShow company address.
Hook
mep_pdf_company_phoneShow company phone number.
Hook
mep_pdf_event_nameShow registered event name.
Hook
mep_pdf_org_nameShow event organizer name.
Hook
mep_pdf_start_dateShow event start date.
Hook
mep_pdf_start_timeShow event start time.
Hook
mep_pdf_attendee_infoShow attendee info given during registration.
Hook
mep_pdf_event_locationShow event location.
Hook
mep_qr_codeDisplay QR code. Pass the permalink as argument:
do_action('mep_qr_code', get_the_permalink()).
Hook
mep_pdf_event_order_idShow order ID.
Hook
mep_pdf_event_ticket_noShow ticket number.
Hook
mep_pdf_event_ticket_priceShow ticket price.
Hook
mep_pdf_event_ticket_typeShow ticket type.
Hook
mep_pdf_event_ticket_term_titleShow terms text title.
Hook
mep_pdf_event_ticket_term_textShow terms text.
Override Category/Organizer Pages
Customize the category or organizer list page templates.
Steps to Override
- Create a folder named
mage-eventsin your theme folder. - Copy
taxonomy-category.phportaxonomy-organizer.phpfromwp-content/plugins/mage-eventpress/templates. - Paste it into
theme-folder/mage-events/. - Edit the template file to change the layout or styling.
Example: Change Grid to List
Change line 17 in taxonomy-category.php:
From:
do_action('mep_event_list_shortcode', get_the_id(), 'three_column', 'grid');
To:
do_action('mep_event_list_shortcode', get_the_id(), 'one_column', 'list');
Override Social Share Icons
Customize or add new social share icons to the share button template.
Steps to Override Share Icons
mage-eventsin your theme folder.single.share_btn.phpfromplugins/mage-eventpress/templates.theme-folder/mage-events/single/.