是不是经常会遇到某些人未经过自己的同意就擅自转载了自己的文章?是不是更有些人直接转载了你的文章并冠上自己的署名?笔者就遇到过这样的事情。说实话,在国内版权问题一直不为人重视,虽然笔者习惯了这些,但多多少少看到这样的事情还是会觉得有些心里难过和愤恨。所以决定为每篇文章都加入版权信息,用来提醒那些转载文章的朋友。

效果图如下:

20150207220134

实现方法:

打开后台编辑,选择 Single.php 找到 <?php the_content(__(‘Read more’, ‘piano-black’)); ?>(由于每款主题函数略有不同,但基本都是在<?php the_content(); ?> 之后),添加如下代码:

<div style=”border:1px dashed #ddd; padding:10px; margin:10px 0;line-height:26px;border-radius: 3px;”><div> » <b> 请尊重作者的劳动成果,转载请注明来源:</b><a title=” 珞凡 Nuomens” href=”http://www.nuomens.com” rel=”external nofollow”> 珞凡 Nuomens</a> » <a rel=”bookmark” title=”<?php the_title(); ?>” href=”<?php the_permalink(); ?>”> 《<?php the_title(); ?> 》</a></div><div> » <b> 如果你喜欢,也可以订阅本站:</b><a title=” 珞凡 Nuomens” href=”http://www.nuomens.com/feed” rel=”external nofollow”>http://www.nuomens.com/feed</a></div><div>

提醒,确保 CSS 中的样式名无重复,重复的话就去修改一下名字。

以上,保存并刷新网页,完工。