Title: adding code to index.php
Last modified: August 18, 2016

---

# adding code to index.php

 *  [craigd](https://wordpress.org/support/users/craigd/)
 * (@craigd)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/adding-code-to-indexphp/)
 * Hello from Japan,
 * I’d like to add the following code to my main index.php so it shows up under 
   each post.
 * Would the following be ok to add?
 * `<a href="http://www.mywebsite.com/whatever/index.php"><img border="0" alt="whatever"
   src="whatever.gif" width="131" height="50"></a>`

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

 *  [Bodhipaksa](https://wordpress.org/support/users/haecceity/)
 * (@haecceity)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/adding-code-to-indexphp/#post-510215)
 * The image should end `height="50" />` and not `height="50">`, but apart from 
   that there would be no problem as long as you put it in the right place.
 *  Thread Starter [craigd](https://wordpress.org/support/users/craigd/)
 * (@craigd)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/adding-code-to-indexphp/#post-510217)
 * Thanks a bunch Haecceity.

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

The topic ‘adding code to index.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [craigd](https://wordpress.org/support/users/craigd/)
 * Last activity: [19 years, 2 months ago](https://wordpress.org/support/topic/adding-code-to-indexphp/#post-510217)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
