Title: Converting html to php
Last modified: August 19, 2016

---

# Converting html to php

 *  [j634](https://wordpress.org/support/users/j634/)
 * (@j634)
 * [17 years ago](https://wordpress.org/support/topic/converting-html-to-php/)
 * Hi,
 * I have a HTML page that works perfectly in IE7 and FF. There are no issues and
   the code (css and xhtml) validates perfectly.
 * I have copied the index.html over to an index.php and set up the css to register
   in wordpress themes. In FF everything is the same as before, but now in IE the
   site (header area and content area) both shift left.
 * Now in my themes folder I have an images folder a style.css and an index.php.
 * I don’t understand why the site is now broken in IE after changing the index.
   html into an index.php.
 * Does anyone have any thoughts?
 * Thanks

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

 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [17 years ago](https://wordpress.org/support/topic/converting-html-to-php/#post-1057894)
 * hi
 * sorry, that is not enough info to give you an answer. the best way to get help
   is post a URL. then someonecan tell you exactly why the site has shifted and 
   what to do to move it back.
 *  Thread Starter [j634](https://wordpress.org/support/users/j634/)
 * (@j634)
 * [17 years ago](https://wordpress.org/support/topic/converting-html-to-php/#post-1057903)
 * Thanks for the reply, but the site is no where near being live yet. I am working
   from a localhost.
 * When I view page source I noticed a closing div tag has appeared.
 *     ```
       </div><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
       <html xmlns="http://www.w3.org/1999/xhtml">
       <head>
       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
       ```
   
 * The div tag is not appearing on notepadd++
 *  [lhoylhoy](https://wordpress.org/support/users/lhoylhoy/)
 * (@lhoylhoy)
 * [17 years ago](https://wordpress.org/support/topic/converting-html-to-php/#post-1057915)
 * go to [wpport.com](http://wpport.com) and download themes there then open the
   header.php then copy every from the top up to the </head> then replace it to 
   yours. its a standard wordpress header so it must work ok?

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

The topic ‘Converting html to php’ is closed to new replies.

 * 3 replies
 * 3 participants
 * Last reply from: [lhoylhoy](https://wordpress.org/support/users/lhoylhoy/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/converting-html-to-php/#post-1057915)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
