Forums

Converting html to php (4 posts)

  1. j634
    Member
    Posted 3 years ago #

    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

  2. stvwlf
    Member
    Posted 3 years ago #

    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.

  3. j634
    Member
    Posted 3 years ago #

    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++

  4. lhoylhoy
    Member
    Posted 3 years ago #

    go to 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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.