Archive for the 'Themes' Category
wordpress创建GuestBook留言本的简单方法
Wednesday, January 9th, 2008打开当前模板的page.php文件,在
<-div class="entry"->
下面添加
<-?php comments_template(); ?->
然后保存为Guestbook.php并且上传到当前模板的目录
最后创建一个的新页面使用Guestbook模板就可以了。。。
注意:需要去掉上面代码中的 - 才可以..
wordpress为留言,评论,增加数字序列号
Tuesday, May 30th, 2006 讲一下如何在留言部分增加数字序列,以WordPress的Default模版为例:
修改comment.php:
- 找到<ol class=”commentlist”>,在这句下面添加<?php $relax_comment_count=1; ?>。
- 一般来说这句下面会有一段<li></li>的语句,在这段语句下面添加<?php $relax_comment_count++; ?>。
- 上面说到的那句<li></li>中可以找到一句<?php comment_text() ?>,在此句上方添加<div class=”commentcount”><?php echo $relax_comment_count; ?></div>。
最终像是这个样子:
- <ol class="commentlist">
- <?php $relax_comment_count=1; ?>
- <?php foreach ($comments as $comment) : ?>
- <li class ...
- ...
- ...
- ...
- <div class="commentcount"><?php echo $relax_comment_count; ?></div>
- <?php comment_text() ?>
- </li>
- <?php $relax_comment_count++; ?>
- <?php endforeach; /* end for each comment */ ?>
接下来就是用css来调整一下commentcount的表现形式,在style.css里增加类似下面的内容:
- .commentcount {
- font-family: Georgia,sans-serif;
- font-size: 24px;
- font-weight: bold;
- color: #e0e0d0;
- float: right;
- }
文章到此完毕,其他模版基本也是一样的,大家自己推敲推敲。
4 column Themes
Saturday, March 4th, 2006
Download
Identification bands 4 columns .tgz file
Identification bands 4 columns .zip file
Theme:identification-band-quadruplet-boyish
Author:http://t37.net/themes
Files:comments.php comments-popup.php footer.php header.php index.php sidebar.php style.css
