1. Home
  2. Docs
  3. Developer Guide
  4. Miscellaneous and Snippet...
  5. Using a Different Size Image As Property Thumbnail

Using a Different Size Image As Property Thumbnail

By default we’ll show the medium image as the main property thumbnail in results, featured properties etc. If using the default WordPress sizes then this is likely 300px wide. There are two ways to change the version of the image shown:

Using Template Assistant Add On

Using our free Template Assistant add on you can change the image size used in results using the below option:

 

PHP Snippet

If you want to change this to use a smaller or larger version you can do so by adding something like so to your theme’s functions.php file:

function propertyhive_template_loop_property_thumbnail() {
    echo propertyhive_get_property_thumbnail( 'large' ); // could also use 'medium', 'thumbnail' or 'full'
}
Was this article helpful to you? No Yes

How can we help?