Im fairly sure this is easy but its slipping my mind I want to show a piece of html code, but only if the page is the homepage. Will be going in the footer which is across all pages. No CMS, just template files
Something like this might work: <?php if($_SERVER['REQUEST_URI'] == "/index.php"){ echo "content"; } else { // add something here if you like } ?> PHP:
Awesome mate, worked a treat. I knew it was something simple just couldnt remember exact syntax. +Rep