wp教程:10WordPress顶部底部模板调用

wordpress顶部底部模板调用

header.php 顶部模板文件
footer.php 底部模板文件
get_header() 获取顶部模板文件
get_footer() 获取底部模板文件

在index.php

<?php get_header();?>

网站内容布局

<?php get_sidebar();?>

<?php get_footer(); ?>

hader.php写顶部布局代码

footer.php写脚部布局代码

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *