Flaunt Posted February 17, 2012 Share Posted February 17, 2012 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 More sharing options...
CartExpert.net Posted February 17, 2012 Share Posted February 17, 2012 Hello, Try using #index #center_column { /*style definition here*/ } Link to comment Share on other sites More sharing options...
Flaunt Posted February 17, 2012 Author Share Posted February 17, 2012 Hello, Try using #index #center_column { /*style definition here*/ } Thanks for your reply. Whereabouts should this be put exactly? 1 Link to comment Share on other sites More sharing options...
Flaunt Posted February 17, 2012 Author Share Posted February 17, 2012 Don't worry, I worked out where to put it. Many thanks! Link to comment Share on other sites More sharing options...
CartExpert.net Posted February 17, 2012 Share Posted February 17, 2012 Does it work? Link to comment Share on other sites More sharing options...
Flaunt Posted February 17, 2012 Author Share Posted February 17, 2012 Does it work? Yes, works perfectly thanks. Quick adjustment to the li block sizes and home image sizes and I'm all set now Link to comment Share on other sites More sharing options...
CartExpert.net Posted February 17, 2012 Share Posted February 17, 2012 That's great. Happy we could help. Link to comment Share on other sites More sharing options...
airmax360fr Posted April 27, 2012 Share Posted April 27, 2012 Thanks for your reply. Whereabouts should this be put exactly? would you please tell me how you do? I need to do this too.thank you in advance Link to comment Share on other sites More sharing options...
Flaunt Posted April 27, 2012 Author Share Posted April 27, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now