How to Override Templates

Please Note: This is a Developer level doc, proceed only if you are familiar with code/templates and resolving potential conflicts.

Eagle Booking supports template overriding from a theme. That means you can change the appearance of the plugin-specific designs. The overrideable files are located in the templates folder. Here is a hierarchy of the templates folder.

eagle-booking/
├── templates/
│   ├── archive-room/
│   │   ├── archive-room.php
│   │   ├── title.php
│   ├── booking/
│   │   ├── additional-services.php
│   │   ├── details.php
│   │   ├── form.php
│   ├── checkout/
│   │   ├── additional-services.php
│   │   ├── details.php
│   │   ├── payment.php
│   │   ├── thankyou.php
│   ├── elements/
│   │   ├── custom-parameters.php
│   │   ├── details.php
│   │   ├── guests-picker.php 
│   ├── email/
│   │   ├── admin.php
│   │   ├── customer.php
│   ├── notices/
│   │   ├──  
│   │   ├──  
│   ├── search/
│   │   ├── filters/
│   │   │   ├── additional-services.php
│   │   │   ├── price.php
│   │   │   ├── services.php
│   │   ├── room/
│   │   │   ├── quick-details/
│   │   │   |   ├── additional-services.php
│   │   │   |   ├── availability.php
│   │   │   |   ├── services.php
│   │   │   ├── price.php
│   │   │   ├── quick-details.php
│   │   │   ├── services.php
│   │   ├── filters.php
│   │   ├── pagination.php 
│   │   ├── room.php 
│   │   ├── sorting.php
│   ├── single-place/
│   │   ├── single-place.php
│   ├── single-room/
│   │   ├── additional-services.php
│   │   ├── availability.php
│   │   ├── booking-form.php
│   │   ├── content.php
│   │   ├── info.php
│   │   ├── reviews.php
│   │   ├── services.php
│   │   ├── sidebar.php
│   │   ├── similar-rooms.php
│   │   ├── single-room.php
│   │   ├── slider.php
│   │   ├── title.php

Please Note: The “Overriding Templates” functionality is currently in Beta and the files structures can be changed in the next updates.

So all the files mentioned above can be overridden from your theme. We strongly recommend you to use a Child Theme.

Steps to override a template of Eagle Booking

  1. Create a folder named “eb-templates” in your theme.
  2. Copy the template you want to override from the templates folder of the plugin.
  3. Paste the template file into the eb-templates folder inside your theme.
  4. Now open the file in a text/code editor and edit it.
  5. Now reload the page from the browser and check if that works

Example: If you want to edit the customer confirmation email.

  1. Create a folder named “eb-templates” in your theme.
  2. Copy the file email/customer.php (Including the folder email) from the templates folder of the plugin.
  3. Paste the file into the “eb-templates” folder.
  4. Now open the file in a text/code editor and edit it.

Was this article helpful?

Related Articles