Title: adding image in the header.php
Last modified: August 20, 2016

---

# adding image in the header.php

 *  [theSysadminChannel](https://wordpress.org/support/users/paulcontreras/)
 * (@paulcontreras)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/adding-image-in-the-headerphp/)
 * I am trying to add an image in the header.php. I have uploaded a .png file to
   wp-content/themes/gamepress/images.
 * I know where to edit the header.php to get it where I want but i just need the
   code to be able to insert the image.
    I want to set it on the left of the ad 
   banner that i have and the code i currently have is: <p align=center style=”margin-
   top: 15px; margin-right: 75px;”><img src=”./images/logo1.png” width=”170″ height
   =”90″ title=”Logo” margin-right: 10px; />< ad banner script></p>
 * however the image never shows up.. Did i upload it to the wrong location? is 
   there something more i need for the img src code. Thank you in advance.

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/adding-image-in-the-headerphp/#post-3133358)
 * try to use:
 * `img src="<?php echo get_stylesheet_directory_uri(); ?>/images/logo1.png"`
 * [http://codex.wordpress.org/Function_Reference/get_stylesheet_directory_uri](http://codex.wordpress.org/Function_Reference/get_stylesheet_directory_uri)
 *  [PatoMaGiK](https://wordpress.org/support/users/patomagik/)
 * (@patomagik)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/adding-image-in-the-headerphp/#post-3133411)
 * Let’s say I am going to advertize for a site with a logo for that site in my 
   header. The logo is downloaded in my libary. Where in header.php do I make changes
   and how? Yes, I am new to this.

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

The topic ‘adding image in the header.php’ is closed to new replies.

## Tags

 * [image in header](https://wordpress.org/support/topic-tag/image-in-header/)

 * 2 replies
 * 3 participants
 * Last reply from: [PatoMaGiK](https://wordpress.org/support/users/patomagik/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/adding-image-in-the-headerphp/#post-3133411)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
