计算机知识 - 计算机基础知识 - 电脑教程 - 电脑知识 - 电脑基础知识 加入收藏 | 设为首页 | 网站地图 | RSS
包罗万象网
您当前的位置:首页 > CMS > wordpress

WordPress发布文章自动添加版权信息的方法

时间:2012-02-07 13:16:11  来源:包罗万象  作者:

一直以来没有设置自动版权信息,老是在文章结尾的时候标注一下。最近时间紧迫发现了,自动版权信息的作用。于是我无意中看到了的博客,感觉文字框还不错,就用Chrome查看其CSS样式,结合Wordpress简单的函数得到了我现在的版权信息:

image

具体步骤如下:

打开后台编辑,选择Single.php 找到 <?php the_content(__('Read more', 'piano-black')); ?>

在其下方加入如下代码(提醒确保CSS中的样式名无重复,重复的话就去修改一下名字)

<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="Quicl’sBlog" href="http://feed.***.com" rel="external nofollow">http://feed.***.com</a></div><div> » <b>转载请注明来源:</b><a title="Quicl’sBlog" href="http://www.baoluowanxiang.com" rel="external nofollow">Quicl’sBlog</a> » <a rel="bookmark" title="<?php the_title(); ?>" href="<?php the_permalink(); ?>">《<?php the_title(); ?>》</a></div></div>

OK,现在刷新一下你的文章,就会看到这个喽!本文《WordPress文章自动添加版权信息》。

来顶一下
返回首页
返回首页
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
推荐资讯
相关文章
栏目更新
栏目热门