bangsters Posted October 8, 2010 Share Posted October 8, 2010 Is it possible to remove the blocks/sideboxes on the left and right side of the main page? only the main page though, as I want the blocks on the products pages and any subpages.thanks Link to comment Share on other sites More sharing options...
rocky Posted October 9, 2010 Share Posted October 9, 2010 You can do this two ways.The first solution is to go to Modules > Positions and edit each of the modules in the "Left column blocks" and "Right column blocks" sections and add "index.php" to the "Exceptions" field.The second solution is to edit header.tpl in your theme's directory and change lines 55-58 from: <!-- Left --> {$HOOK_LEFT_COLUMN} to: {if $page_name != 'index'} <!-- Left --> {$HOOK_LEFT_COLUMN} {/if} and lines 4-7 of footer.tpl from: <!-- Right --> {$HOOK_RIGHT_COLUMN} to: {if $page_name != 'index'} <!-- Right --> {$HOOK_RIGHT_COLUMN} {/if} Link to comment Share on other sites More sharing options...
bangsters Posted October 11, 2010 Author Share Posted October 11, 2010 Thanks. However, if I do this, the center column still does not take the whole space. How do i adjust the css only for index.php so that center_column takes 100%. again, only for index.php Link to comment Share on other sites More sharing options...
shokinro Posted October 11, 2010 Share Posted October 11, 2010 Check out following topic, I think you can find your answer or some clues there.http://www.prestashop.com/forums/viewthread/58290/integration/solved_single_column_home_page_only Link to comment Share on other sites More sharing options...
nero_77 Posted November 9, 2010 Share Posted November 9, 2010 You can do this two ways.The first solution is to go to Modules > Positions and edit each of the modules in the "Left column blocks" and "Right column blocks" sections and add "index.php" to the "Exceptions" field.The second solution is to edit header.tpl in your theme's directory and change lines 55-58 from: <!-- Left --> {$HOOK_LEFT_COLUMN} to: {if $page_name != 'index'} <!-- Left --> {$HOOK_LEFT_COLUMN} {/if} and lines 4-7 of footer.tpl from: <!-- Right --> {$HOOK_RIGHT_COLUMN} to: {if $page_name != 'index'} <!-- Right --> {$HOOK_RIGHT_COLUMN} {/if} Great advice, thanks for sharing! Extremely useful Link to comment Share on other sites More sharing options...
Recommended Posts