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
| ├── archive-room/
| | ├── archive-room.php/
| | ├── header.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
- Create a folder named “eb-templates” in your theme.
- Copy the template you want to override from the templates folder of the plugin.
- Paste the template file into the eb-templates folder inside your theme.
- Now open the file in a text/code editor and edit it.
- Now reload the page from the browser and check if that works
Example: If you want to edit the customer confirmation email.
- Create a folder named “eb-templates” in your child theme.
- Copy the file email/customer.php (Including the “email” folder) from the templates folder of the plugin.
- Paste the file into the “eb-templates” folder.
- Now open the file in a text/code editor and edit it.