body class on one page only |
[eluser]Unknown[/eluser]
Hello, I have a design I'm currently trying to implement into CodeIgniter that has a body class on the home page only. I've spent the entire day trying to solve the issue, searching etc and have come up empty handed. If the page = http://www.mysite.tld/ or http://www.mysite.tld/index I need to to have the following body tag; Code: <body class="index"> All the other pages do not require a body class. I've tried the following but it did not work; Code: <body <? if($_SERVER['REQUEST_URI'] == 'index'){echo 'class="index"';} ?>> Any ideas?
[eluser]PravinS[/eluser]
check using uri segment http://ellislab.com/codeigniter/user-gui...s/uri.html |
Welcome Guest, Not a member yet? Register Sign In |