Title: Adding divs to index.php
Last modified: August 21, 2016

---

# Adding divs to index.php

 *  [vicki31](https://wordpress.org/support/users/vicki31/)
 * (@vicki31)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/adding-divs-to-indexphp/)
 * I am currently doing a website just on localhost at present. I have added a div
   to index.php and wrote up some css, but it is not showing on the page. I checked
   and have the correct coding in place. Using firebug, the div is not showing up.
   Any ideas would be appreciated. I checked the backend editor and the code is 
   showing up in index.php.
    Thanks.

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

 *  [Borko](https://wordpress.org/support/users/media-x/)
 * (@media-x)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/adding-divs-to-indexphp/#post-4203812)
 * That sounds a bit strange because the DIV should show if you see it in the code.
   Did you double check the code. A DIV code looks like this:
 *     ```
       <div>
         <h3>This is a heading</h3>
         <p>This is a paragraph.</p>
       </div>
       ```
   
 * I mean, it’s difficult to troubleshoot something without seeing the site.
 *  Thread Starter [vicki31](https://wordpress.org/support/users/vicki31/)
 * (@vicki31)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/adding-divs-to-indexphp/#post-4203893)
 * The code was <div id=”featured”></div>
 * I was going to add an image to div via css.
 *  [Borko](https://wordpress.org/support/users/media-x/)
 * (@media-x)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/adding-divs-to-indexphp/#post-4203895)
 * But you’re adding an empty div. Not sure what you’re tryin to achieve but you
   could ad the image code to that div and then style it with CSS.
 *  Thread Starter [vicki31](https://wordpress.org/support/users/vicki31/)
 * (@vicki31)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/adding-divs-to-indexphp/#post-4203908)
 * I did add an image src but did not work, so tried adding via css, but to no avail.
 *  Thread Starter [vicki31](https://wordpress.org/support/users/vicki31/)
 * (@vicki31)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/adding-divs-to-indexphp/#post-4203943)
 * I ended up using making a new template page and it worked.

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

The topic ‘Adding divs to index.php’ is closed to new replies.

## Tags

 * [starkers](https://wordpress.org/support/topic-tag/starkers/)

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

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
