Home Support Themes ListingHive Can anyone help with image resize? (filter)

Can anyone help with image resize? (filter)

  • Author
    Posts
  • kvkvn

    So according to this code here:

    add_filter(
    	'hivepress/v1/image_sizes',
    	function( $image_sizes ) {
    		return HivePress\Helpers\merge_arrays(
    			$image_sizes,
    			[
    				'landscape_small' => [
    					'width'  => 400,
    					'height' => 225,
    				],
    
    				'landscape_large' => [
    					'width'  => 800,
    					'height' => 450,
    				],
    			]
    		);
    	}
    );

    What should it be as I want the frontpage to have only 1 ROW and to contain 468×60 images (banners)
    Should I set width on both to 468 and height to 60?
    Then to regenerate thumbnails?

    kvkvn

    also does it mean that it will require people to upload images with that size ?

    ihor developer

    This code is not required anymore, you can adjust the image sizes in Settings/Media section. If you mean some custom banner images please try editing the Home page and insert custom linked images directly, because if you change these images sizes they will be changed for all listings.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.