WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] doctype (6 posts)

  1. giec
    Member
    Posted 2 years ago #

    Hi guys, I would like to change the doctype of my site http://andys.antonioborrillo.co.uk/wp/?page_id=24, could you let me know how I can access that info please, I don't seem to be able to find the doctype
    thanks

  2. mattskills
    Member
    Posted 2 years ago #

    this is located on line 1 of header.php and should look like this:

    <!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" <?php language_attributes(); ?>>

  3. giec
    Member
    Posted 2 years ago #

    mattskills, thanks for that. Ok, I was planning to change it to html 4 strict...what would happen if I do that?
    ALso, where do I find the header.php file please? How do I get to it?
    thanks

  4. mattskills
    Member
    Posted 2 years ago #

    nothing noticeable will happen lol , and it is in the theme folder

  5. giec
    Member
    Posted 2 years ago #

    right ok, I thought that it will start giving me errors because all the code seems to be in xhtml. I will give it a go. incidentally I have a problem with html validation, but I will open another thread on that

  6. giec
    Member
    Posted 2 years ago #

    ah sorry, about the php file. I have created a child theme, so do I need to make a copy of the header.php and paste it onto my child theme folder?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.