ihordeveloper

This code snippet should work (you can add it to the child theme functions.php file):

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,
				],
			]
		);
	}
);

You can then re-generate thumbnails for existing images if there’re any 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.