Title: Insert banner into all posts (page.php)
Last modified: August 20, 2016

---

# Insert banner into all posts (page.php)

 *  [zookie_333](https://wordpress.org/support/users/zookie_333/)
 * (@zookie_333)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/insert-banner-into-all-posts-pagephp/)
 * I want to add a picture to all posts. How to hardcode a php to show the banner
   on all posts. I think i edit **page.php** but how?
 * ../uploads/banner.png
 * m.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/insert-banner-into-all-posts-pagephp/#post-2327246)
 * as the name suggests, **page.php **is for pages;
    for posts try index.php or 
   single.php;
 * the html code for an image is:
 * `<img src="../uploads/banner.png" alt="" />`
 * you will possibly need to use the absolute path to the image.
 *  Thread Starter [zookie_333](https://wordpress.org/support/users/zookie_333/)
 * (@zookie_333)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/insert-banner-into-all-posts-pagephp/#post-2327326)
 * index.php:
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 *  Thread Starter [zookie_333](https://wordpress.org/support/users/zookie_333/)
 * (@zookie_333)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/insert-banner-into-all-posts-pagephp/#post-2327327)
 * Where to add the image tag?
 * this is my Single.php
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/insert-banner-into-all-posts-pagephp/#post-2327332)
 * > I want to add a picture to all posts.
 * > Where to add the image tag?
 * you need to describe in more detail where you want the image to show – then someone
   might be able to point to the location in your template where to add the image
   code.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Insert banner into all posts (page.php)’ is closed to new replies.

## Tags

 * [page.php](https://wordpress.org/support/topic-tag/page-php/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [picture/](https://wordpress.org/support/topic-tag/picture/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/insert-banner-into-all-posts-pagephp/#post-2327332)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
