Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1364

    Is there a way to have the main image on the home page – the featured image – a static image not associated with a post? The image on my home page (blue & white silhouettes) at http://www.laurencandito.com – I want to keep it on my home page, without having to put it with a blog post. Is this possible?

    #34991

    Hey,

    You would need to modify index.php to add a static image on the homepage. Open it up and just under:

    <div id="main">

    (around line 21), add this code:

    <?php if (!is_paged()) { ?>
    <img src="PATH/TO/IMAGE.JPG" />
    <?php } ?>

    The PHP part will stop it showing up on paged pages, (eg site.com/page/2 & site.com/page/3 etc ).

    James

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Featured image’ is closed to new replies.