Title: Help upload a custom static page. Code fail?
Last modified: August 20, 2016

---

# Help upload a custom static page. Code fail?

 *  [Davecfm](https://wordpress.org/support/users/davecfm/)
 * (@davecfm)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/help-upload-a-custom-static-page-code-fail/)
 * Looking to have a custom static page with a full size picture and links.
 * Website: davec.fm
    To start I have done the following: -Brand new website with
   2011 theme -I’ve created two pages (My Front & Blog) -Pointed the Static page
   to My Front in Settings/Reading -Created a simple html.php file with one image.(
   see code below) -Transfered the php file to appropriate theme folder thus creating
   My Front -Transfered the png image to the image folder.
 * Where have I gone wrong?
 * ‘<?php /* Template Name: My Front
    */?> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML
   1.0 Transitional//EN” “[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt);
   <html xmlns=”[http://www.w3.org/1999/xhtml”&gt](http://www.w3.org/1999/xhtml”&gt);
   <html> * <head> <title>davec.fm</title> * </head> <body> <p style=”text-align:
   center”/> <img src=”davec/wp-content/themes/twentyeleven/images/myfront.png” 
   alt=”myfront” /> </body> * </html>’
 * * indicates where tag should be in the line below. Forum only allows 10 lines
   of code.
 * The big mystery when checked with validatorW3.org is the DOCTYPE. Which one should
   I be using? The initial one had xml.
    Do I have this code all wrong? And if so,
   can someone send me a sample? Thanks for reading. Hope someone can help. Dave

The topic ‘Help upload a custom static page. Code fail?’ is closed to new replies.

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [doctype](https://wordpress.org/support/topic-tag/doctype/)
 * [php code](https://wordpress.org/support/topic-tag/php-code/)
 * [static-page](https://wordpress.org/support/topic-tag/static-page/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Davecfm](https://wordpress.org/support/users/davecfm/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/help-upload-a-custom-static-page-code-fail/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
