Templates
ID Vendor Event Reviews includes two custom templates that load automatically for Vendor Event pages. You can override them in your theme for full customization.
Single Event Template
The single event template (single-event.php) renders when a visitor views an individual event. It displays the hero image, event title with type badge, meta bar (location and date), post content, reviews section (via the [[idver_reviews]] shortcode), and the review submission form (via the [[idver_submit_review]] shortcode).
Archive Event Template
The archive template (archive-event.php) renders for both the main archive (/vendor-events/) and Event Type archives (/event-type/craft-fair/). It shows a header with type filter buttons, a responsive event card grid, and pagination.
Theme Overrides
To customize either template:
- Create a directory called
id-vendor-event-reviewsinside your active theme’s root folder. - Copy the template file(s) from
wp-content/plugins/id-vendor-event-reviews/templates/into your new directory. - Edit the copied file(s) to match your design.
| Template | Plugin Path | Theme Override Path |
|---|---|---|
| Single Event | plugins/id-vendor-event-reviews/templates/single-event.php |
your-theme/id-vendor-event-reviews/single-event.php |
| Archive Event | plugins/id-vendor-event-reviews/templates/archive-event.php |
your-theme/id-vendor-event-reviews/archive-event.php |
The plugin uses locate_template() via the template_include filter, so theme overrides always take priority.
