Title: Adding HTML above Content.
Last modified: August 21, 2016

---

# Adding HTML above Content.

 *  [Indexx7](https://wordpress.org/support/users/indexx7/)
 * (@indexx7)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/adding-html-above-content/)
 * Ello,
 * I’m trying to add HTML above my content, in the index.php file.
    It works, but
   it aligns it to the very left of the page.
 * When I try to center it, it goes underneath the right sidebar.
    I don’t want 
   to offset it with pxs with css, because it offsets my mobile site, which works
   just fine when I use css to align it in the center.
 * Anyway I can get it centered with my content, and so it won’t interfere with 
   the right sidebar?
 * I’m putting my code under
    `<div id="content" class="site-content" role="main"
   >`
 * PS. I dont want it in header.php because I only want it on the homepage, where
   all of my posts are.
    Thanks.

Viewing 1 replies (of 1 total)

 *  [Rijo Abraham](https://wordpress.org/support/users/hdalive/)
 * (@hdalive)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/adding-html-above-content/#post-4827784)
 * It will be better if you post the link of the website so that someone with right
   knowledge can help you.

Viewing 1 replies (of 1 total)

The topic ‘Adding HTML above Content.’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Rijo Abraham](https://wordpress.org/support/users/hdalive/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/adding-html-above-content/#post-4827784)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
