Jeff Simons Decena Posted September 2, 2010 Share Posted September 2, 2010 I have been hooking the right column to homepage only and not on subpages but no luck.. any clues on how to do this??Right now, what i am doing is, hooking the right colum after the homefeatured block so it will just display on the homepage but after some trial an error, it is still not showing. Link to comment Share on other sites More sharing options...
razaro Posted September 2, 2010 Share Posted September 2, 2010 Here is code (in footer.tpl) {if $page_name == 'index'} {$HOOK_RIGHT_COLUMN} {/if} Link to comment Share on other sites More sharing options...
Jeff Simons Decena Posted September 2, 2010 Author Share Posted September 2, 2010 wow works like a charm!! thanks for this!! Link to comment Share on other sites More sharing options...
razaro Posted September 2, 2010 Share Posted September 2, 2010 No problem and please edit your first post and add [sOLVED] the front of the title. Link to comment Share on other sites More sharing options...
Jeff Simons Decena Posted September 2, 2010 Author Share Posted September 2, 2010 if you may know also, the "div" holding the center area is "center column" which is the same with the one with the homepage. Would you know which file would i modify if I like to change the width of the center column of the subpages? It is currently like 600px (width) and on the subpages i like 800px. I hope i am clear. Link to comment Share on other sites More sharing options...
razaro Posted September 2, 2010 Share Posted September 2, 2010 Not sure but i am guessing what you trying to do.All css is in global.css there you can add for example body#index div#center_column{width:600px} That way only on homepage width will be 600px and for rest it will be body {width:800px} Link to comment Share on other sites More sharing options...
Jeff Simons Decena Posted September 2, 2010 Author Share Posted September 2, 2010 it it because globally it is using #center_columnThe reason i am asking where is the file to be modified so i can modify the div on the subpages (eg.#center_column1) so I can control the width of the div on the subpages. Link to comment Share on other sites More sharing options...
razaro Posted September 2, 2010 Share Posted September 2, 2010 In theme directory there are tpl files like product.tpl, category.tpl where you can add additional div but I think that is not good way.You need to edit a lot of files.Like in previous post you can control some pages style (width)by changing css like body#index div#center_column body#product div#center_column body#category div#center_column body#order div#center_column body#new-products div#center_column 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