eGzyl.pl Posted December 7, 2009 Share Posted December 7, 2009 exist some like homepage ?? whos is diffrent from other?If yes how can i make it?? ( i want have only one item in homepage without left and right cloums but in the next page i wanna have it, only.Some condition i must write for example [if(homepage){show ble ble} elseif {rightcolumns and center and leftcolumns}] ) what i must do ??ps. this is editoria??thx for help Link to comment Share on other sites More sharing options...
eGzyl.pl Posted December 9, 2009 Author Share Posted December 9, 2009 somebody help me? Link to comment Share on other sites More sharing options...
rocky Posted December 10, 2009 Share Posted December 10, 2009 Are you asking to remove the columns just on the homepage? To do this, modify header.tpl in your theme's directory and change: <!-- Left --> {$HOOK_LEFT_COLUMN} to: {if $page_name != 'index'} <!-- Left --> {$HOOK_LEFT_COLUMN} {/if} and in footer.tpl, change: <!-- Right --> {$HOOK_RIGHT_COLUMN} to: {if $page_name != 'index'} <!-- Right --> {$HOOK_RIGHT_COLUMN} {/if} You can increase the width of the center column on the homepage by adding the following to css/global.css in your theme's directory: body#index #center_column { width: 900px; } Change 900px to whatever you want the width of the center column to be on the homepage only. Link to comment Share on other sites More sharing options...
eGzyl.pl Posted December 10, 2009 Author Share Posted December 10, 2009 {if $page_name == 'index'} not that? Link to comment Share on other sites More sharing options...
rocky Posted December 10, 2009 Share Posted December 10, 2009 Doing that will make the left and right columns appear only on the homepage. Link to comment Share on other sites More sharing options...
eGzyl.pl Posted December 10, 2009 Author Share Posted December 10, 2009 ye i know now thx Link to comment Share on other sites More sharing options...
teclive Posted December 22, 2009 Share Posted December 22, 2009 hey everyone, hope we are all doing well i was wondering if there was a line of code similar to the one used above that would hide the header on the index page?thanks muchly T Link to comment Share on other sites More sharing options...
rocky Posted December 23, 2009 Share Posted December 23, 2009 You can use the same code {if $page_name != 'index'} {/if} around the header div that includes {HOOK_HEADER} in header.tpl in your theme's directory to hide the header on the homepage. Link to comment Share on other sites More sharing options...
mabrur Posted March 20, 2011 Share Posted March 20, 2011 Thank you rocky. It works for me http://www.venuspro.web.id 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