Free Directory, Listing & Classifieds WordPress Plugin Support General HivePress Images not displaying properly + listings not submitting Reply To: Images not displaying properly + listings not submitting

ihordeveloper

This code snippet should work:

add_filter(
	'hivepress/v1/image_sizes',
	function( $image_sizes ) {
		return HivePress\Helpers\merge_arrays(
			$image_sizes,
			[
				'landscape_small' => [
					'crop' => [ 'center', 'top' ],
				],
			]
		);
	}
);

After you add it it’s possible to regenerate existing thumbnails https://wordpress.org/plugins/regenerate-thumbnails/

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.

Black Friday is coming! Get 25% off any purchase with FRIDAY2020 coupon code until Friday, November 27.