roer Posted June 19, 2013 Share Posted June 19, 2013 Hi, I am finding it frustating trying to modify the center of the homepage and the product page - when I change the width for one, the other changes too... However, what I am after is having the center width of the homepage to be 980px (because I removed both left and right columns) and having the product pages to be about 580px because the left and right columns are still there... Help please? Ro Link to comment Share on other sites More sharing options...
vekia Posted June 19, 2013 Share Posted June 19, 2013 what version prestashop you use? everything depends on it. Link to comment Share on other sites More sharing options...
roer Posted June 19, 2013 Author Share Posted June 19, 2013 Oh wow, thanks for the immediate response... Its PrestaShop™ 1.5.4.1 Thanks... Link to comment Share on other sites More sharing options...
vekia Posted June 19, 2013 Share Posted June 19, 2013 okay, so the prestashop 1.5.4.1 uses grid system, hope you don't change sources of it if so - roll back changes there. so, you said that you've got full width one column on homepage (correct way to achieve this is change the class to grid_9 alpha omega) now you want grid_5 on product page in this case you have to use if condition to define grid value here is a sample code: <!-- Center --> <div id="center_column" class="{if $page_name == 'index'}grid_9 clarfix alpha omega{else}grid_5{/if}"> try to use it in header.tpl file Link to comment Share on other sites More sharing options...
roer Posted June 19, 2013 Author Share Posted June 19, 2013 Life saver Vekia! Thanks a billion.. 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