Archive for the ‘建站相关’ Category.
6月 15, 2012, 01:57
一直以来没有设置自动版权信息,老是在文章结尾的时候标注一下。最近时间紧迫发现了,自动版权信息的作用。于是我无意中看到了“潘晓的博客”,感觉文字框还不错,就用Chrome查看其CSS样式,结合Wordpress简单的函数得到了我现在的版权信息:
具体步骤如下:
打开后台编辑,选择Single.php 找到 <?php the_content(__(‘Read more’, ‘piano-black’)); ?>
在其下方加入如下代码(提醒确保CSS中的样式名无重复,重复的话就去修改一下名字)
<!-- 版权 Button BEGIN -->
<div style="border:1px dashed #ddd; padding:10px; margin:10px 0;line-height:26px;border-radius: 3px;"><div>
» <b>本文链接:</b><a rel="bookmark" title="<?php the_title(); ?>" href="<?php the_permalink(); ?>">
<?php echo wp_get_shortlink(); ?></a></div><div> » <b>订阅本站:</b>
<a title="Jonee's Blog" href="http://jonee.net/feed" rel="external nofollow">jonee.net/feed</a></div>
<div> » <b>转载请注明来源:</b><a title="Jonee's Blog" href="http://jonee.net" rel="external nofollow">Jonee's Blog</a>
» <a rel="bookmark" title="<?php the_title(); ?>" href="<?php the_permalink(); ?>">《<?php the_title(); ?>》</a></div>
</div>
<!-- 版权 Button BEGIN -->
OK,现在刷新一下你的文章,就会看到这个喽!
原创于Quicl’sBlog ,转载注明出处http://20xue.com/?p=1864
6月 12, 2012, 16:19
效果见本blog,无需任何插件.
转自:http://themes.wopus.org/wpthemes/cn-wordpress-themes/3198.html/comment-page-2#comment-28193
作者:Arne
语言:中文
类别:两栏
风格:中国古韵味道水墨画
版本:1.1.0
演示:DEMO
主题简介:
此版风格起名为Ink and wash,即水墨画的意思,是一款比较有中国古韵味道的Wordpress主题。主题兼容IE6/7/8、Firefox、Opera、Chrome、Safari。主题可以单独使用,不需要启用插件,整体来说,是一款很不错的具有中国文化特色的WordPress主题。而且主题本身非常重视用户的使用体验,在SEO方面做了一些注解,也做了优化,国内很少有主题做的这么细致,一款值得使用的国人主题。
特别说明:本主题必须要安装微软雅黑体并开启ClearType效果才可以达到最佳效果!
Continue reading ‘推荐一款我最喜欢的主题Ink and wash’ »
6月 12, 2012, 14:46
复制下面的代码
<div id="full" style="width:50px; height:95px; position:fixed; left:50%; top:425px; margin-left:493px; z-index:100; text-align:center; cursor:pointer;">
<a><img src="http://top.baidu.com/img/return_top.gif" border=0 alt="返回顶部"></a>
</div>
<script src="http://top.baidu.com/js/news_top.js" type="text/javascript"></script>
将它插入到footer.php文档的</body>上面即可!
如果不知道footer.php在哪里,请按照下面的路径找:外观——编辑——在右边寻找 footer.php 文件
(我们再来回顾一下代码,第一行中的style后面定义了图标的样式,如果你对这个东东略懂一二,可以按照自己喜欢的大小和颜色调节图标外观)