Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Display content by page URI?
#3
Tried the follwing:

Code:
<?php
    $theuri = $_SERVER['REQUEST_URI'];
    if ( ($theuri =="/") or ($theuri =="/index.php") )
    {
?>

<div id="gallery">
    <div id="top-photo">
        <p><a href="#"><img src="<?php get_theme_url(); ?>/images/img08.jpg" alt="" width="830" height="300" /></a></p>
    </div>
</div>

<?php } else; { ?>

<h1>Test</h1>

<?php } ?>

And "Test" appears on every page.
Reply


Messages In This Thread
Display content by page URI? - by brumbino - 2010-01-15, 13:59:08
Display content by page URI? - by brumbino - 2010-01-15, 14:00:42
Display content by page URI? - by brumbino - 2010-01-15, 14:05:11
Display content by page URI? - by internet54 - 2010-01-15, 14:15:05
Display content by page URI? - by brumbino - 2010-01-15, 14:27:00
Display content by page URI? - by Zegnåt - 2010-01-15, 16:35:39
Display content by page URI? - by Nijikokun - 2010-01-15, 17:01:35



Users browsing this thread: 2 Guest(s)