skip to Main Content
< All Articles
Print

rem_featured_image_size

This filter can be used to change the size of featured images of listings used in the listing archives.

Arguments

  1. Image size or array of width height [String|Integer[]]
  2. Image ID [Integer]

Example

The following code will set the featured image size to 200px by 200px. Please paste the following code in your theme’s functions.php file.

add_filter( 'rem_featured_image_size', 'rem_change_f_image_size', 10, 2 );

function rem_change_f_image_size($image_size, $id){
	return array( 200, 200);
}

 

Quick Navigation
Back To Top