制作footer.php,在主题目录中新建文件footer.php,提取index.php中的页脚代码:
<!-- Footer -->
<p class="grid_12 footer clearfix"> <span class="float"><strong>Design By</strong> QwibbleDesigns <strong>Code By</strong> <a href="">Ludou</a></span> <a class="float right" href="#">top</a> </p>
</div>
<!--end wrapper-->
</body>
</html>
再将index.php、archive.php、contact.php、full_width.php、page.php、single.php中类似代码删掉,改为:
<?php get_footer();?>
然后将footer.php中的代码删掉,改为:
!-- Footer -->
<p class="grid_12 footer clearfix">
<span class="float">版权所有 © 2010 <?php bloginfo(‘name‘); ?>
| Powered By <a rel="external" title="WordPress主页" class="link" href="http://wordpress.org/">WordPress</a>
| Design By QwibbleDesigns |
Code By <a href="xxxxxxxxxx">xxx</a>
</span>
<a class="float right" href="#">top</a> </p>
</div>
<!--end wrapper-->
<?php wp_footer(); ?>
</body>
</html>
footer.php中加入作者的信息。