• I am trying to display a different header image on front page only.
    I am new to WP.

    I learned from a tutorial how to use an “if” statement (in the header.php) to tell a static page from a post using the following code. (If it is a page, it will didplay at the top “This is a page”. If it is a post, it will display “This is not a page”.

    [code]
    <?php
    if (is_page()){
    print "this is a page";
    }else{
    print "This is not a page";
    }
    ?>
    [/code]

    My question is, how can I tell decypher a page from a “front page” so I can call a different image if it is the “front page”?
    Thanks, Buffmin

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘if (is front page) ?’ is closed to new replies.