Changing image size of categories on front page

I have a Listing Categories block on my front page and would like to make its thumbnail images a little smaller. Is that possible?

1 Like

Hi,

If I understand you correctly, please check this doc How to customize the image sizes - HivePress Help Center

Hi, either I’m misunderstanding the proposed solution or it doesn’t apply to my problem. I’m trying to adjust the image size of the thumbnails on the front page of my HivePress installation, i.e. the size of the images displayed in the Listings category block.

In the media settings, I can change the e.g. Thumbnail Size, Medium Size, Large Size, etc., but it doesn’t say which images these settings apply to.

In any case, I don’t think any of those settings apply to the specific images I’m trying to adjust anyways, as the images I’m trying to adjust the size for are currently displayed in portrait mode, which does not seem to be the case for any of the settings available under SettingsMedia.

Hi,

Sorry for the confusion.

Please try this PHP snippet (How to add custom code snippets - HivePress Help Center):

add_filter(
	'hivetheme/v1/image_sizes',
	function( $image_sizes ) {
		$image_sizes['portrait_small']['height'] = 400;
		$image_sizes['portrait_small']['width'] = 400;

		return $image_sizes;
	}
);

After you add this code snippet, you need to re-upload the image.

2 Likes

Great, this has worked perfectly. Thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.