1. Docs
  2. Developer Guide
  3. Default Templates

Default Templates

Property Hive comes with it’s own set of default templates meaning you can display properties on your site without having to do any code.

Of course, there is a high chance that you will want to amend the layouts or data shown in someway. This is achievable but first let’s look at the template structure:

Note: All of the default templates can be found at YOUR_PLUGIN_DIR/propertyhive/templates/.
Note: We recommend that you NEVER change these files direct as any changes may be lost if you ever update the plugin. The preferred method is to create a copy of the template in your theme. See the ‘Overriding Templates’ section for more information on how to do this.

 

/global/
Contains the templates that apply to or can be displayed on more than one page, and in some cases might apply to every page on your site. Some examples of this are the sidebar, and search form.

/search/
Contains templates relating to individual components on the search results page (e.g. Pagination, price etc)

/single-property/
Following the same principle as /search/, this folder contains templates relating to individual components of the single property details page.

archive-property.php
The Template for displaying property archives, also referred to as ‘Search Results’.

content-property.php
This is referenced within archive-property.php and contains the HTML for a single search result

content-property-featured.php
Similarly to the above, if you show featured properties on your site, this is the HTML for a single featured property results.

content-property-recent.php
As the two files above, this is the HTML for single recent property should you want to show new instructions or recently added properties on the site.

single-property.php
This is the main file used when someone views a single property details page on your site. This includes the content-single-property.php file below.

content-single-property.php
This file is included by the single-property.php file above and includes all of the components and details for an individual property page (images, features, descriptions etc)

Was this article helpful to you? Yes No 1