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”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<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.