Jump to content

[SOLVED] Altering Featured Products Width


Flaunt

Recommended Posts

Hi,

 

I want to widen the block 'Featured Products' on the home page (PS 1.4.7).

 

I know normally you would do this by changing the width of the central column in 'grid.prestashop.css' BUT this affects every page in the shop and so messes up my layouts on those (I'm not using left and right columns only on homepage).

 

Is there a way to widen it without this happening? Maybe add an instruction somewhere so I can determine it's width regardless of what the centre column width is doing?

 

Thanks

Link to comment
Share on other sites

  • 2 months later...

would you please tell me how you do? I need to do this too.thank you in advance

 

Look for where the featured products section starts in your themes global.css (varies so ctrl-f to find it).

 

Put the code right at the beginning of this section, like I did in my example below:

 

/* ************************************************************************************************
  HOMEPAGE
************************************************************************************************ */
/* BLOCK HOME FEATURED ************************************************************************* */
#index #center_column {
width:971px;
}
#featured-products_block_center li {
margin-right:13px;
padding:10px 0;
width:230px;

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