# Changing image size of categories on front page

**URL:** <https://community.hivepress.io/t/changing-image-size-of-categories-on-front-page/5595>\
**Category:** HivePress\
**Created:** [May 1, 2023, 9:58pm UTC](https://community.hivepress.io/t/changing-image-size-of-categories-on-front-page/5595 "2023-05-01T21:58:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hubub](https://community.hivepress.io/letter_avatar_proxy/v4/letter/h/58f4c7/32.png) [@hubub](https://community.hivepress.io/u/hubub)\
**Post date:** [May 1, 2023, 9:58pm UTC](https://community.hivepress.io/t/changing-image-size-of-categories-on-front-page/5595/1 "2023-05-01T21:58:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [May 2, 2023, 7:07am UTC](https://community.hivepress.io/t/changing-image-size-of-categories-on-front-page/5595/2 "2023-05-02T07:07:39Z")

</div>

Hi,

If I understand you correctly, please check this doc [How to customize the image sizes - HivePress Help Center](https://help.hivepress.io/article/133-how-to-customize-the-image-sizes)

---

<div class="post-metadata">

**Author:** ![hubub](https://community.hivepress.io/letter_avatar_proxy/v4/letter/h/58f4c7/32.png) [@hubub](https://community.hivepress.io/u/hubub)\
**Post date:** [May 2, 2023, 1:19pm UTC](https://community.hivepress.io/t/changing-image-size-of-categories-on-front-page/5595/3 "2023-05-02T13:19:47Z")

</div>

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 _Settings_ → _Media_.

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [May 3, 2023, 10:24am UTC](https://community.hivepress.io/t/changing-image-size-of-categories-on-front-page/5595/7 "2023-05-03T10:24:19Z")

</div>

Hi,

Sorry for the confusion.

Please try this PHP snippet ([How to add custom code snippets - HivePress Help Center](https://help.hivepress.io/article/23-how-to-add-custom-code-snippets)):

```auto
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.

---

<div class="post-metadata">

**Author:** ![hubub](https://community.hivepress.io/letter_avatar_proxy/v4/letter/h/58f4c7/32.png) [@hubub](https://community.hivepress.io/u/hubub)\
**Post date:** [May 3, 2023, 4:05pm UTC](https://community.hivepress.io/t/changing-image-size-of-categories-on-front-page/5595/8 "2023-05-03T16:05:32Z")

</div>

Great, this has worked perfectly. Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [June 2, 2023, 4:06pm UTC](https://community.hivepress.io/t/changing-image-size-of-categories-on-front-page/5595/9 "2023-06-02T16:06:03Z")

</div>

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