WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Change Image on single.php Page (3 posts)

  1. Etaile
    Member
    Posted 6 years ago #

    I have 2 images I'd like to use (picture of a cat and a thumbnail of the cat), and I'd like for the thumbnail to appear on every page EXCEPT for single.php. On the single.php I'd like for the full image to appear. I'll do any XHTML, CSS, Java, whatever work, I'd just like to know how to do that.

  2. sasch9r
    Member
    Posted 6 years ago #

  3. Etaile
    Member
    Posted 6 years ago #

    Ah thank you, that should do it. I searched and couldn't find that :o

    EDIT:
    For anyone else who can't figure this out, here it is. Download exec-php (Google it, WordPress Plugin), then the code is:

    <?php if (is_single()) { ?>
    <img></img> <---- Image for single page here
    <?php } else { ?>
    <img></img> <---- Image for other pages here
    <?php } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic