avdesigns Posted February 19, 2013 Report Share 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 Link to comment Share on other sites More sharing options...
Tom Posted February 20, 2013 Report Share 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 Link to comment Share on other sites More sharing options...
avdesigns Posted February 20, 2013 Author Report Share Posted February 20, 2013 Yeah I had alot of trouble searching for it, thank you very much Tom that works! Quote Link to comment Share on other sites More sharing options...
Jason Posted February 21, 2013 Report Share 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 Link to comment Share on other sites More sharing options...
Tom Posted February 21, 2013 Report Share Posted February 21, 2013 Would i place that code in my skins layout.tpl file? Yup Quote Link to comment Share on other sites More sharing options...
avdesigns Posted February 21, 2013 Author Report Share Posted February 21, 2013 Disregard Quote Link to comment Share on other sites More sharing options...
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.