新年新气象,启用新主题

image

既然是涅槃重生,那就需要有新的气象,所以我打算把自己的主题进行更换,选了许久,终于把主题选择为 zsofa (http://wordpress.org/extend/themes/zsofa

这个主题比较简洁比较适合我的胃口。安装之后,我又对主题进行了一些设置:

一、插件设置

启用插件:
WP-PostViews:统计文章浏览量
WP Page Numbers:增加页码
Simple Tags:增加相关文章
WP Kit CN:启用文章摘要
Clean Archives Reloaded实现新的Archive页效果
Google XML Sitemaps:设置 sitemap.xml,让Google更好收录
WordPress Database Backup:数据库备份,血的教训,这个一定得启用
wp slug translate:翻译文章标题,为固定连接准备
WordPress Thread Comment:设定文章后回复效果的插件(2.24日Update:才发现原主题没有直接回复的按钮,增加之

二、其他设置

主题项目的修改

1.将feed地址修改

不知怎么回事,FeedBurner一直烧录不了我原来的feed:http://www.qiankun.org.ru/feed ,只好用feedsky了

为了便于统计烧录原地址为http://feed.feedsky.com/qiankun
具体:
1).增加feedsky的widget侧边栏2.24日Update:考虑载入速度太慢,取消
image
2).修改页面的head.php文件(2.24日Update:不变更了,省的麻烦

<link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
变更为
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://feed.feedsky.com/qiankun" />

2.在footer.php增加Google Analysis51啦的统计代码

3.增加favicon.ico图标

head.php文件中增加

<link rel=”shortcut icon” href=”<?php bloginfo(‘template_directory’); ?>/favicon.ico” />
<link rel=”icon” type=”image/gif” href=”<?php bloginfo(‘template_directory’); ?>/animated_favicon1.gif” />

4.首页文章下面增加tag标签

原主题在首页的文章下面并没有增加tag标签,它只是在单独的文章页面有tag标签,所以我打算增加它.

在index.php文件中35行~38行(红色为新增项)

<?php if ( is_single() ) { ?>
<p class=”post-info-bottom”><span class=”post-info-category”>Posted in <?php the_category(‘, ‘) ?></span><span class=”post-info-tags”><?php the_tags(‘Tags: ‘, ‘, ‘, ”); ?></span></p>
<?php if(function_exists(‘st_related_posts’)) { echo ‘<blockquote>’; st_related_posts(‘title=<h3>Related posts</h3>’); echo ‘</blockquote>’; } ?>
<?php } ?>

变为

<?php if ( is_single() ) { ?>
<p class=”post-info-bottom”><span class=”post-info-category”>Posted in <?php the_category(‘, ‘) ?></span><span class=”post-info-tags”><?php the_tags(‘Tags: ‘, ‘, ‘, ”); ?></span></p>
<?php if(function_exists(‘st_related_posts’)) { echo ‘<blockquote>’; st_related_posts(‘title=<h3>Related posts</h3>’); echo ‘</blockquote>’; } ?>
<?php } ?>
<?php if ( !is_single() ) { ?>
<p class=”post-info-bottom”></span><span class=”post-info-tags”><?php the_tags(‘Tags: ‘, ‘, ‘, ”); ?></span></p>
<?php } ?>

5.固定连接修改

格式修改为 /%year%/%monthnum%/%postname%.html

以下2.24日Update

6.Head.php修改

页面右上角增加twitter,sina微博按钮,Rss按钮更换

image

将twitter,sina和Rss的图标扔到主题的img文件夹内,然后修改源码:

<div id=”rss”>
<a style=”background:url(‘<?php bloginfo(‘template_directory’); ?>/images/sub_twitter.gif’) no-repeat 0 0;padding-left:18px;” href=”http://twitter.com/qiankun” rel=”nofollow” title=”Follow Me in Twitter”>Follow Me in Twitter</a>
<a style=”background:url(‘<?php bloginfo(‘template_directory’); ?>/images/sub_sina.ico’) no-repeat 0 0;padding-left:18px;” href=”http://t.sina.com.cn/qiankun” rel=”nofollow” title=”Follow Me in Sina”>Follow Me in Sina</a>
<a style=”background:url(‘<?php bloginfo(‘template_directory’); ?>/images/sub_rss.gif’) no-repeat 0 0;padding-left:18px;” href=”http://feed.feedsky.com/qiankun” rel=”nofollow” title=”RSS Feed”>RSS Feed</a>
</div>

Related posts

Leave a comment

0 Comments.

Leave a Reply


[ Ctrl + Enter ]

注意: 评论者允许使用'@user空格'的方式将自己的评论通知另外评论者。例如, ABC是本文的评论者之一,则使用'@ABC '(不包括单引号)将会自动将您的评论发送给ABC。