# Change size of images in the listing category

**URL:** <https://community.hivepress.io/t/change-size-of-images-in-the-listing-category/7548>\
**Category:** HivePress\
**Created:** [September 18, 2023, 8:53pm UTC](https://community.hivepress.io/t/change-size-of-images-in-the-listing-category/7548 "2023-09-18T20:53:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafamed1208](https://community.hivepress.io/letter_avatar_proxy/v4/letter/r/c4cdca/32.png) [@rafamed1208](https://community.hivepress.io/u/rafamed1208)\
**Post date:** [September 18, 2023, 8:53pm UTC](https://community.hivepress.io/t/change-size-of-images-in-the-listing-category/7548/1 "2023-09-18T20:53:27Z")

</div>

Greetings to all,  
I am new to handling this topic but I think I have studied the documentation of the Rentalhive plugin, and I have not been able to solve the change that is generated in the size of the images when uploading categories, for example. , apartments, houses, farms, etc… The thing is that before when I imported the Rentalhive demo, those images looked uniform, that is, the same size, but then to replace them and continue adding ad categories, some look longer than others, That is to say, they do not look uniform, I have organized each image with the same measurements, weight, format and it has not worked. I have them at 4 columns and then I change them to 3 like in the demo, and everything remains the same, it doesn’t fix it,

 ![CATEGORIAS VISTA PREVIA](https://community.hivepress.io/uploads/default/original/2X/6/6c1ab4c2d2dd720be18e1fe94c66ae95415d7043.jpeg)

Thank you in advance for your help

* * *

---

<div class="post-metadata">

**Author:** ![aqmiami7](https://community.hivepress.io/user_avatar/community.hivepress.io/aqmiami7/32/2069_2.png) [@aqmiami7](https://community.hivepress.io/u/aqmiami7)\
**Post date:** [September 19, 2023, 12:09am UTC](https://community.hivepress.io/t/change-size-of-images-in-the-listing-category/7548/2 "2023-09-19T00:09:54Z")

</div>

use this code snippet (Usa este code snippet):

```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;
	}
);

```

---

<div class="post-metadata">

**Author:** ![rafamed1208](https://community.hivepress.io/letter_avatar_proxy/v4/letter/r/c4cdca/32.png) [@rafamed1208](https://community.hivepress.io/u/rafamed1208)\
**Post date:** [September 19, 2023, 2:00am UTC](https://community.hivepress.io/t/change-size-of-images-in-the-listing-category/7548/3 "2023-09-19T02:00:33Z")

</div>

Thank you very much for your answer aqmiami7 but as I said, I am new to this, where (line) of the theme editor do I place that code, excuse my ignorance. hahaha.

---

<div class="post-metadata">

**Author:** ![aqmiami7](https://community.hivepress.io/user_avatar/community.hivepress.io/aqmiami7/32/2069_2.png) [@aqmiami7](https://community.hivepress.io/u/aqmiami7)\
**Post date:** [September 19, 2023, 3:56am UTC](https://community.hivepress.io/t/change-size-of-images-in-the-listing-category/7548/4 "2023-09-19T03:56:15Z")

</div>

Hola aquí quieren que escriben el inglés (Here is required to write in English).

You have to download a code snippets plugin.

If you want email me and I’ll give you some tips and point you in the right direction. [Aqmiami7@gmail.com](mailto:Aqmiami7@gmail.com)

But note most of the stuff you can find here in forum via search. You just have to read a lot jajaja 🤣

---

<div class="post-metadata">

**Author:** ![rafamed1208](https://community.hivepress.io/letter_avatar_proxy/v4/letter/r/c4cdca/32.png) [@rafamed1208](https://community.hivepress.io/u/rafamed1208)\
**Post date:** [September 19, 2023, 3:07pm UTC](https://community.hivepress.io/t/change-size-of-images-in-the-listing-category/7548/5 "2023-09-19T15:07:55Z")

</div>

Thank you very much, email sent with administrator access, in case you want to make the correction, and if you explain to me where you did it, the better. ha ha ha

---

<div class="post-metadata">

**Author:** ![aqmiami7](https://community.hivepress.io/user_avatar/community.hivepress.io/aqmiami7/32/2069_2.png) [@aqmiami7](https://community.hivepress.io/u/aqmiami7)\
**Post date:** [September 20, 2023, 4:05am UTC](https://community.hivepress.io/t/change-size-of-images-in-the-listing-category/7548/6 "2023-09-20T04:05:48Z")

</div>

Hi Rafamed1208, I went to your site and fixed it.

 ![image](https://community.hivepress.io/uploads/default/original/2X/6/611baae6ab7604da4b4b330beb1c45dc02cd7060.jpeg)

All you needed to do was go to Apperance\>Customize\>Add additional CSS, then place the CSS code that I placed for you.

I also added the code snippet plugin for you and added the previous code snippet mentioned to make the images the same size, but that was not needed for this. I put that one as an example so you can see where you paste it.

You can add new code snippets by just going to plugin and adding new. You will find many code snippets helpful. [How to add custom code snippets - HivePress Help Center](https://help.hivepress.io/article/23-how-to-add-custom-code-snippets) You can find them by searching in this community or by looking here: [Search · user:hivepress · GitHub](https://gist.github.com/search?q=user%3Ahivepress)

Hope this helps. Let me know if you need any more help! =)

---

<div class="post-metadata">

**Author:** ![rafamed1208](https://community.hivepress.io/letter_avatar_proxy/v4/letter/r/c4cdca/32.png) [@rafamed1208](https://community.hivepress.io/u/rafamed1208)\
**Post date:** [September 20, 2023, 12:24pm UTC](https://community.hivepress.io/t/change-size-of-images-in-the-listing-category/7548/7 "2023-09-20T12:24:24Z")

</div>

Thank you very much aqmiami7, for solving my problem, you are great

---

<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:** [October 20, 2023, 12:25pm UTC](https://community.hivepress.io/t/change-size-of-images-in-the-listing-category/7548/8 "2023-10-20T12:25:19Z")

</div>

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