首页 > 代码库 > 学习wordpress模板制作第二天 header.php的尝试

学习wordpress模板制作第二天 header.php的尝试

<!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" />

<meta http-equiv="X-UA-Compatible" content="IE=7" />

<title><?php bloginfo("name") ?></title>

<meta name="keywords" content="" />

<meta name="description" content="<?php bloginfo(‘description‘);?>" />

<meta name="author" content="" />

<link href="http://www.mamicode.com/<?php bloginfo(‘stylesheet_url‘); ?>" rel="stylesheet" type="text/css" />
<script src="http://www.mamicode.com/<?php bloginfo(‘template_url‘); ?>/js/png.js" type="text/javascript"></script>
<script src="http://www.mamicode.com/<?php bloginfo(‘template_url‘); ?>/js/scrolltop.js" type="text/javascript"></script>
<?php wp_head(); ?>
</head>

<script src="http://www.mamicode.com/<?php bloginfo(‘template_url‘); ?>/js/png.js" type="text/javascript"></script> 可换成wp_enqueue_script( ‘init_js‘,get_bloginfo(‘template_url‘).‘/js/init.js‘);新手不建议更换

学习wordpress模板制作第二天 header.php的尝试