Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #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 – I want to keep it on my home page, without having to put it with a blog post. Is this possible?



    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 & etc ).


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

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