phantomeye Posted June 9, 2010 Share Posted June 9, 2010 Hi Guys,Im trying to achieve a single column on my home page only, but 2 columns for the rest of the site. I have changed my header and footer.tpl to achieve this. But now i need to set my center column width to 980px for only the home page. I tried adding this line to my header.tpl, but it did not work, my whole page went blank. I know im making a mistake, please help: <!-- Left --> {if $page_name != 'index'} {$HOOK_LEFT_COLUMN} {/if} <!-- Center --> {if ($page_name=='index')} {else} {/if} Link to comment Share on other sites More sharing options...
rocky Posted June 10, 2010 Share Posted June 10, 2010 Just use the following code in your global.css: body#index #center_column { width: 980px } Link to comment Share on other sites More sharing options...
phantomeye Posted June 10, 2010 Author Share Posted June 10, 2010 Hi Rocky,Is that in addition to my header or just use this code only and delete the header info for center column. Link to comment Share on other sites More sharing options...
rocky Posted June 10, 2010 Share Posted June 10, 2010 Remove the code you added to the #center_column to add the style, but leave the code to hide the left column. Link to comment Share on other sites More sharing options...
phantomeye Posted June 10, 2010 Author Share Posted June 10, 2010 Still getting a blank screen. Heres what ive done:Changed header.tpl to reflect the left column edit only. Added the above code you gave to the global.css just before the center column settings. Link to comment Share on other sites More sharing options...
rocky Posted June 10, 2010 Share Posted June 10, 2010 Edit config/config.inc.php and temporarily change 'display_errors' at the top from 'off' to 'on', so you get an error message instead of a blank page. Post the error message here. 1 Link to comment Share on other sites More sharing options...
phantomeye Posted June 10, 2010 Author Share Posted June 10, 2010 Fatal error: Smarty error: [in themes/Test/header.tpl line 62]: syntax error: unclosed tag \{if} (opened line 41). (Smarty_Compiler.class.php, line 317) in /tools/smarty/Smarty.class.php on line 1095 Link to comment Share on other sites More sharing options...
phantomeye Posted June 10, 2010 Author Share Posted June 10, 2010 Fixed, thats a good tip Rocky, to turn on the display error. Thanks once againCheers 1 Link to comment Share on other sites More sharing options...
rocky Posted June 10, 2010 Share Posted June 10, 2010 Remember to turn it off when you aren't using it, since it can reveal your server directory to whoever views a page with an error. 1 Link to comment Share on other sites More sharing options...
phantomeye Posted June 10, 2010 Author Share Posted June 10, 2010 You bet :-) Link to comment Share on other sites More sharing options...
shokinro Posted November 27, 2010 Share Posted November 27, 2010 Thanks for the tips. This 's what I have been looking for a while. Link to comment Share on other sites More sharing options...
mabrur Posted March 20, 2011 Share Posted March 20, 2011 Just use the following code in your global.css: body#index #center_column { width: 980px } Thank you rocky. It works for me... http://www.venuspro.web.id Link to comment Share on other sites More sharing options...
cloud8 Posted October 17, 2011 Share Posted October 17, 2011 Thanks - me too Link to comment Share on other sites More sharing options...
Machelle Posted November 2, 2011 Share Posted November 2, 2011 Hi There, I would like a center column only throughout my site. What code do I use for this and where. The help will be SO much appreciated! Link to comment Share on other sites More sharing options...
Gaddy Posted April 30, 2012 Share Posted April 30, 2012 Thanks a lot Rocky. Helped me a lot. Link to comment Share on other sites More sharing options...
matto1 Posted October 11, 2013 Share Posted October 11, 2013 Where can i find other #ID to use in another pages like product page, cart page and etc.? 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