Jump to content

How to change product size in product list ?


Geekvape

Recommended Posts

Hi there :)

I have been looking for hours for a solution to my problem, I would like to ask the community because I think I am not the only one looking for a solution to this problem...

I managed (after 12 cups of coffee) to put 4 products per line in my grid, but now I would like to reduce the space between the products... I have already changed the size of the "home" images but they remain in 250x250...

Any idea please? Thanks a lot

 

PrestaShop 8.1 / Default theme

image.thumb.png.a6c40db0df256c18c5ed62abadcba818.png

Link to comment
Share on other sites

HI.

./themes/classic/templates/catalog/_partials/miniatures/product.tpl

add style to this line:

<div class="js-product product{if !empty($productClasses)} {$productClasses}{/if}">

after:

<div class="js-product product{if !empty($productClasses)} {$productClasses}{/if}" style="padding:5px !important">

 

Edited by ps8modules.com (see edit history)
Link to comment
Share on other sites

 

Thank you for your response!

I changed the line and cleaned the cache but it doesn't work.

 

I also tried adding "style="pading:5px !important" to another place in the code but no results... Any other idea ? Thanks

Link to comment
Share on other sites

Le 07/09/2024 à 12:58 AM, Geekvape a dit :

I managed (after 12 cups of coffee) to put 4 products per line in my grid, but now I would like to reduce the space between the products... I have already changed the size of the "home" images but they remain in 250x250...

Hi, when you change image size you need to rebuild products images 😉 

Link to comment
Share on other sites

I copied/pasted the line of code you gave me...

But yes it works great with "padding", thank you so much for your help!

Also a big thank you for you Andrei H 🙏

Last thing, do you know how to reduce space between lines now? ^^

image.thumb.png.b3d92ba8d4b6cfd49e8305df5a899a3f.png

Link to comment
Share on other sites

4 hours ago, Prestashop Addict said:

Hi, when you change image size you need to rebuild products images 😉 

Thank you but I did it and it was not the problem, it was a padding problem 😁 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...