Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Display content by page URI?
#4
Create a flag variable. I used $myhomepage and set it to true.
Put the flag variable at the top of the template for the home page.
For all other pages, just omit the variable or change it to FALSE.

Code:
<?php
    $myhomepage = TRUE;
    if ($myhomepage)
    {
?>

<div id="gallery">
    <div id="top-photo">
        <p>
                <img src="<?php get_theme_url(); ?>/images/screenshot.png" alt="" width="830" height="300" />
            </p>
    </div>
</div>

<?php } ?>
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
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: 1 Guest(s)