Jump to content

[solved] Featured products: width of each item


Recommended Posts

Hi everybody,

 

I'm now 2 days working with Prestashop and with the tips and trics on the forum everything went well,

but now I can't move on...

 

I have one central column with a featured product list with 6 items, I want that the 6 items together have the same width of the whole central column, the result now is that the picures are bigger but I can see them half in the "original sized product item".

 

What I'm doing wrong? I've found a few trics but for < 1.5

 

Thanks for the help!!

Edited by Vale46 (see edit history)

Share this post


Link to post
Share on other sites

Well, you'll need to edit the css AND tpl files for this, the first one to define the width of each element, the latter for defining how many items must fit inside a row ;) For the pictures, you can change the size for home_default in the back office->preferences->images

Share this post


Link to post
Share on other sites

Yep.

Can't remember by heart, but it should be something likne "NbItems" in the tpl file (smarty variable assigned with some math at the beginning of the file. The default is 4) and the "li" items in the css. Sorry, I can't check it now and i don't recall it by heart ;)

Share this post


Link to post
Share on other sites

If you want the 6 blocks to be larger, you have to change their fixed width in the homefeatured.css file, line 1 (just inspected with chrome dev tools)

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More