Säg att jag har följande index i statisk html som ska in till ett wordpress tema http://pastebin.com/5d29UjvL och funderar på vad header.php ska innehålla. Finns det vissa saker <head> ska innehålla för wordpress eller kan man bara kopiera in min head från statiska sidan in i header.php?
Kort sagt hur ska min header.php för wordpress se ut om min statiska index ser ut så här http://pastebin.com/5d29UjvL nu
Ger några exempel för att förklara mig bättre.
Head och header från mitt tema.
<!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 name="author" content="Wink Hosting (www.winkhosting.com)" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="images/style.css" type="text/css" />
<title>RedTie</title>
</head>
<body>
<div id="page" align="center">
<div id="content" style="width:800px">
<div id="logo">
<div style="margin-top:70px" class="whitetitle">RedTie</div>
</div>
<div id="topheader">
<div align="left" class="bodytext">
<br />
<strong>Your Company Name</strong><br />
Evergreen Terrace 742<br />
Kansas Missouri<br />
Phone: 432-653-3121<br />
sales@thetiecompany.com
</div>
<div id="toplinks" class="smallgraytext">
<a href="#">Home</a> | <a href="#">Sitemap</a> | <a href="#">Contact Us</a>
</div>
</div>
Eller ta en head från wordpress codex och lägga till min header från bode så det blir
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php wp_title(); ?></title>
<meta name="description" content="<?php bloginfo( 'description' ); ?>">
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" type="text/css" media="screen" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
</head>
Plus detta från min statiska html
<body>
<div id="page" align="center">
<div id="content" style="width:800px">
<div id="logo">
<div style="margin-top:70px" class="whitetitle">RedTie</div>
</div>
<div id="topheader">
<div align="left" class="bodytext">
<br />
<strong>Your Company Name</strong><br />
Evergreen Terrace 742<br />
Kansas Missouri<br />
Phone: 432-653-3121<br />
sales@thetiecompany.com
</div>
<div id="toplinks" class="smallgraytext">
<a href="#">Home</a> | <a href="#">Sitemap</a> | <a href="#">Contact Us</a>
</div>
</div>