avdesigns Posted February 19, 2013 Report Posted February 19, 2013 Hello, I need a div between my header and footer for every page but the homepage is there any php or anything I could use so on the homepage the div wouldn't be visible. Or would I have to add the div manually on each page? Thanks Quote
Tom Posted February 20, 2013 Report Posted February 20, 2013 This has come up so many times I'm sure. Surprisingly difficult to find in search though. <?php if(MainController::$activeModule != 'Frontpage'){ ?> <div></div> <?php } ?> 1 Quote
avdesigns Posted February 20, 2013 Author Report Posted February 20, 2013 Yeah I had alot of trouble searching for it, thank you very much Tom that works! Quote
Jason Posted February 21, 2013 Report Posted February 21, 2013 This has come up so many times I'm sure. Surprisingly difficult to find in search though. <?php if(MainController::$activeModule != 'Frontpage'){ ?> <div></div> <?php } ?> Would i place that code in my skins layout.tpl file? Quote
Tom Posted February 21, 2013 Report Posted February 21, 2013 Would i place that code in my skins layout.tpl file? Yup Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.