How to change the number of listing columns

I am able to specify number of columns ,say 4, for displaying categories on home page but when a location search is done it jumps to three columns. Where do I set that.

Hi,

Please clarify, do you want to change the number of listing columns on this page?

No.
My Categories display as per my homepage settings in four columns as follows https://www.grokstays.com/
When I search a location it displays only three categories side by side instead of four as follows - GROKSTAYS.COM.

Hi,

I see. Please use this PHP snippet: Change the number of columns on the listing categories page #hivepress #listing-categories · GitHub. You can add a PHP snippet using this doc: How to add custom code snippets - HivePress Help Center

​I hope this is helpful to you

Thank you that works great.