How to create custom widget templates using the theme template loader
You can modify the default widgets templates by creating a folder inside your theme folder called easypropertylistings just like you can with the listing templates.
All you need to do is copy the widget-content-{type}.php template files from the plugin folder and edit that, the plugin will use the files located inside the theme before the plugin version.
Template files are located in:
/plugins/easy-property-listings/lib/templates/content/
Copy the following two main template files and edit as you see fit. All output fields are contained inside and are all executed via action hooks which is much easier to edit and customise.
- widget-content-listing.php // Default Widget
- widget-content-listing-image.php // Widget Image Only Option
- widget-content-listing-list.php // List Option
- widget-content-author-tall.php // Author Widget
Editable Templates
So to customise the single template you will place the files into the following folder:
/themes/THEMENAME/easypropertylistings/widget-content-listing.php
We want Easy Property Listings to be endlessly flexible for developers and theme creators.
If you need assistance visit
support.