almostanad Posted November 3, 2009 Share Posted November 3, 2009 how could i change the product page to only 2 columns, left and center,the center size should be equal to old center and right columns. Link to comment Share on other sites More sharing options...
rocky Posted November 3, 2009 Share Posted November 3, 2009 Modify footer.tpl in your theme's directory and {* comment out *} the following code: <!-- Right --> {$HOOK_RIGHT_COLUMN} Then find the #center_column section of css/global.css in your theme's directory and add the width of #right_column and the padding to the #center_column width. Link to comment Share on other sites More sharing options...
ravindranathk Posted November 3, 2009 Share Posted November 3, 2009 It would affect the whole sites Left bar and right bar module adjustments. so it would need a lot of work although u want to change to a single page. While switching modules it shouldnot affect the UI. So please be careful while doing this change. Link to comment Share on other sites More sharing options...
rocky Posted November 3, 2009 Share Posted November 3, 2009 Sorry, misread the original post. In that case, you should write the following in footer.tpl instead: {if $page_name != 'category'} <!-- Right --> {$HOOK_RIGHT_COLUMN} {/if} and in global.css, copy the #center_column section to a separate section called body#category #center_column and increase the width there. Link to comment Share on other sites More sharing options...
philb Posted February 6, 2010 Share Posted February 6, 2010 Hi,Would really like to try this mod just on the home page.Does anyone have the line numbers that the modification needs to be done on, on both the footer.tpl and the global.css?Many Thanks Link to comment Share on other sites More sharing options...
rocky Posted February 6, 2010 Share Posted February 6, 2010 To hide the right column on the homepage, change lines 4-7 of footer.tpl in your theme's directory to: {if $page_name != 'index'} <!-- Right --> {$HOOK_RIGHT_COLUMN} {/if} and after the #center_column section on lines 206-209 of css/global.css in your theme's directory, add: body#index #center_column { width: 775px; margin-left: 0; } Adjust the width if necessary to get the center column all the way to the right edge of the page. Link to comment Share on other sites More sharing options...
dennib Posted February 17, 2010 Share Posted February 17, 2010 Hi guys,and if i have to hide the left coloumn from all the pages what must I do?thank you! Link to comment Share on other sites More sharing options...
rocky Posted February 18, 2010 Share Posted February 18, 2010 You will need to {* comment out *} lines 53-56 from header.tpl in your theme's directory: <!-- Left --> {$HOOK_LEFT_COLUMN} Link to comment Share on other sites More sharing options...
dennib Posted February 18, 2010 Share Posted February 18, 2010 OK, very very thank you! Link to comment Share on other sites More sharing options...
IceCOOL Posted January 26, 2011 Share Posted January 26, 2011 I am trying to hide right column in SUBCATEGORIES page...i ve put this code into header.tpl {if !isset($subcategories)} <!-- Center --> {/if} {if isset($subcategories)} {/if} 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