加入版权信息
(一)在文章结尾
首先打开style.css文件,在其中第542行之后,/* main END */之前,添加如下的三行代码:
1
2
3
| .reship{ float:left; width:99%; margin-bottom:20px; font-size:12px; }
.reship p{ padding:0px 10px 0px 0px; text-align:right; color:#999999; border-right:1px dashed #BBBBBB; font-size:12px; }
.reship a:link, .reship a:visited, .reship a:hover{ color:#999999; text-decoration:underline} |
然后打开主题文件夹下的single.php文件,找到其中第27行,在其后面添加如下代码:
1
2
3
4
5
| <div class="reship">
<p>转载原创文章请注明:文章转载自:<strong>< ?php bloginfo(’name’); ?></strong> [<a href="<?php echo get_settings('home'); ?>">< ?php echo get_settings('home'); ?></a>]<br />
本文标题:< ?php the_title(); ?><br />
本文地址:<a href=”<?php the_permalink(); ?>”>< ?php the_permalink(); ?></a> </p>
</div> |
这样在文章的最后会显示上面的内容
全文阅读