Skip to main content

Template Override

Override the default WpRently templates to customise the front-end appearance of your rental pages. Your changes stay intact through plugin updates when overrides are placed inside a child theme.

Override Existing Templates

Copy both the templates/single and templates/screenshot directories from the plugin into your active child theme's templates/ folder, preserving the same directory structure. Templates are organized by template name first (default or muffin — matching the two built-in templates available under Advanced → Template), then by rental type inside each:

your-child-theme/
└── templates/
├── single/
│ ├── default/
│ └── muffin/
└── screenshot/

After copying, edit the template files in your child theme. The plugin automatically loads your overridden templates instead of the defaults.

Create Your Own Custom Template

You can create a completely new template instead of modifying a default one.

  1. Copy the default template folder from templates/single/default/.
  2. Rename the copied folder to your preferred template name (e.g., modern, custom-layout).
  3. Create a preview image with the same name (e.g., modern.webp) and place it inside templates/screenshot/.
  4. Your new template appears automatically in the template selection list within the plugin.

Rental Type Templates

Inside each template folder (default/, muffin/, or your own custom one), you will find separate template files for different rental types:

FileRental Type
multi-day.phpMulti-day rentals
multiple-items.phpMultiple-item rentals
resort.phpResort bookings
single-day.phpSingle-day rentals (also used for Appointment)

Edit the file that matches the rental type you want to customise. This gives you full control over the layout and markup for each type.

Hooks and Filters

In addition to template overrides, WpRently provides a wide range of hooks and filters. Use them to further customise output and styling without modifying any core plugin files.

See the Developer Hooks article for a full reference of available actions and filters.