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 by overriding the templates you wish to change but first let’s look at the template structure:

Note: All of the default templates can be found at %YOUR_PLUGIN_DIR%/propertyhive/templates/ .

Never change these template files direct in the plugin folder 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’ guide for more information on how to do this.

/account/

This directory contains templates relating to the 'My Account' area of your site. From registration forms to the contents of each individual section once logged in.


/emails/

This directory contains templates for emails sent including the header, footer, CSS styles, the property content for email alerts and more


/global/

This directory 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. An example of this is the search form.


/search/

This directory contains templates relating to individual components on the search results page (e.g. pagination, price etc)


/single-property/

This directory 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’. This includes the content-property.php template.


/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 using the [featured_properties] shortcode, 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 using the [recent_properties] shortcode.


/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)