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

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

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