Ready to get started?Download WordPress


Image on full site, but not on permalink page? (4 posts)

  1. jeffsmith
    Posted 9 years ago #

    Is it possible to have an image on the front of the full site, but it won't show up when you look at the links page?

  2. Kafkaesqui

    Posted 9 years ago #

    Yes, but it would help to know if the image is part of a post, or the banner of your site, or whatever. Can you provide some more detail in what and where the image is?

  3. jeffsmith
    Posted 9 years ago #

    It would be an image on the top of the main section of the page. A comic strip.

    I''d like it on the front of the site, below the banner, but I don't want it visable while looking at post pages

    Thanks :-)

  4. Kafkaesqui

    Posted 9 years ago #

    Two of the simpler ways to do this (running 1.5):

    1. Set up a home.php template in your theme's directory. Easiest to just copy your index.php. Then edit home.php and insert the image where you want it to appear.

    2. In your theme's index.php, add the following where the image is to show:

    <?php if(is_home()) : ?>
    <img src="/image/displayed/on/frontpage.jpg" />
    <?php endif; ?>

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.