So I’ve been working on restructing the 449 site a little this morning, we originally put it together in about a day, so I’ve been working on giving it a better “flow” and generally tidying up the code. The only thing that’s been causing me an irritation is that, for some obscure reason, the wordpress conditional tag is_home()
doesn’t appear to return TRUE
on the homepage :S So in the sidebar where I want to serve up the “Great content needs a great design” call-to-action when you’re on the homepage, but no other pages, I’ve had to invent a little hack:
<?php if(empty($_SERVER['REQUEST_URI']) || $_SERVER['REQUEST_URI'] == '/'){ echo 'code here