2010-01-15, 13:59:08
I am working on a templaet (yes happy to share when done!), but I have a niggly problem...
I want to be able to display a large picture only on the Home - or front - page i.e. index.php or "/"
Now...in normal php I would use:
but this doesn't work - no picture is displayed anywhere and no errors - php or otherwise - are displayed.
Help!!!!
I want to be able to display a large picture only on the Home - or front - page i.e. index.php or "/"
Now...in normal php I would use:
Code:
<?php
$theuri = $_SERVER['REQUEST_URI'];
if ( ($theuri =="/") or ($theuri =="/index.php") )
{
?>
<div id="gallery">
<div id="top-photo">
<p>
<img src="<?php get_theme_url(); ?>/images/img08.jpg" alt="" width="830" height="300" />
</p>
</div>
</div>
<?php } ?>
but this doesn't work - no picture is displayed anywhere and no errors - php or otherwise - are displayed.
Help!!!!