位置:SEO博客 > wordpress > 在wordpress博文后面加版权

在wordpress博文后面加版权

进入wordpress后台,左侧的外观栏处点编辑,进入编辑主题页面,在右侧找到并点击Single post (single.php)

在代码中找到:
<?php the_content() ?>
在后面添加版权说明即可。

在添加版权说明的时候可能会用到的两个标签:

文章标题:<?php the_title(); ?>

本文地址:<a href=”<?php the_permalink() ?>” title=”<?php the_title(); ?>”><?php the_permalink(); ?></a>

本博客的添加方式是:在<div class=”entry-content”></div>
这个代码块后面添加以下代码:

<div class="reship">
本站文章除注明转载外,均为本站原创<br />
转载请注明:文章转载自:<a href="http://www.zhengyiwen.com/">郑义文SEO博客</a><br/>
本文标题:<?php the_title(); ?><br/>
本文地址:<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_permalink(); ?></a>
</div>

并在样式文件style.css中(编辑主题右侧Single post下方可以找到)添加样式:
.reship{
padding:10px;
font-size:12px;
background:#fffedf;
border-top:1px solid #ffdf7b;
border-bottom:1px solid #ffdf7b;
}
.reship a:link, .reship a:visited, .reship a:hover{
color:#666666;
text-decoration:underline;
}

效果如本文后方所示!

本站文章除注明转载外,均为本站原创
转载请注明:文章转载自:郑义文SEO博客
本文标题:在wordpress博文后面加版权
本文地址:http://www.zhengyiwen.com/article-copyright.html

41 Comments

  1. Posted 2011年04月10日 at 14:40 | Permalink

    俺是新手,全仗着插件,谢谢写这么好的文章,我来学习了

    [回复]

  2. Posted 2011年04月11日 at 11:42 | Permalink

    很不错的hack~

    [回复]

  3. Posted 2011年04月11日 at 17:16 | Permalink

    php的我不怎么明白。

    [回复]

  4. Posted 2011年04月12日 at 14:33 | Permalink

    我的是z-blog怎么加版权?

    [回复]

    郑义文 回复:

    有好几年没用zblog了,如果是默认模板的话,在THEMES/default/TEMPLATE目录下的b_article-single.html中,找到<div><#article/content#></div>,在后面添加。

    [回复]

  5. Posted 2011年04月12日 at 14:53 | Permalink

    学习这个教程

    [回复]

  6. Posted 2011年04月12日 at 15:57 | Permalink

    感谢分享!!!!

    [回复]

  7. Posted 2011年04月14日 at 10:24 | Permalink

    非常感谢15哥撰写的文章,我已顺利添加上了。

    [回复]

  8. Posted 2011年04月14日 at 14:57 | Permalink

    哈哈、给力!俺也不是很懂PHP、所以靠插件了· 试试先

    [回复]

  9. Posted 2011年04月15日 at 09:14 | Permalink

    支持楼主,谢谢分享

    [回复]

  10. Posted 2011年04月15日 at 13:54 | Permalink

    楼主分享的很给力!

    [回复]

  11. Posted 2011年04月18日 at 10:31 | Permalink

    楼主学习啦,谢谢

    [回复]

  12. Posted 2011年04月22日 at 18:32 | Permalink

    这个小细节,挺重要的。学习了··

    [回复]

  13. Posted 2011年04月22日 at 18:32 | Permalink

    好像有个插件,可以直接解决这个哦。

    [回复]

  14. Posted 2011年04月25日 at 22:41 | Permalink

    学习了,呵呵

    [回复]

  15. Posted 2011年04月27日 at 17:49 | Permalink

    待会去尝试一下!谢谢分享!

    [回复]

  16. Posted 2011年05月18日 at 17:15 | Permalink

    php还是挺复杂的啊,

    [回复]

  17. Posted 2011年05月18日 at 17:16 | Permalink

    php有点搞得不太懂

    [回复]

  18. Posted 2011年05月20日 at 16:33 | Permalink

    呵呵 学习了

    [回复]

  19. Posted 2011年06月1日 at 12:19 | Permalink

    来看你了哈 早就认识你了 一直没机会  今天刚好是机会哈

    [回复]

  20. Posted 2011年06月10日 at 15:26 | Permalink

    热闹 我也支持一下

    [回复]

  21. Posted 2011年06月10日 at 15:34 | Permalink

    楼主分享的很好 加油

    [回复]

  22. Posted 2011年06月17日 at 16:04 | Permalink

    感谢分享 学习下了

    [回复]

  23. Posted 2011年07月22日 at 14:35 | Permalink

    按着博主的步骤走,感谢分享

    [回复]

  24. Posted 2011年07月23日 at 13:06 | Permalink

    你都多久没更新了

    [回复]

  25. Posted 2011年07月23日 at 13:06 | Permalink

    博主太懒了

    [回复]

  26. Posted 2011年07月23日 at 13:07 | Permalink

    在忙什么事吧

    [回复]

  27. Posted 2011年07月23日 at 13:09 | Permalink

    学习了

    [回复]

  28. Posted 2011年07月23日 at 13:09 | Permalink

    分享一下

    [回复]

  29. Posted 2011年08月4日 at 20:36 | Permalink

    偷师来了。

    [回复]

  30. Posted 2011年08月9日 at 17:47 | Permalink

    这个要学习。。

    [回复]

  31. 张迪
    Posted 2011年08月13日 at 17:18 | Permalink

    15哥,又有一个问题需要15哥解决一下,就是你告诉我的那个杜绝垃圾评论的插件,我启用了,但是后台说要输入一个 WordPress.com API key 才能生效,但是我不会用,请15哥帮我弄一下啊。。。。。。。。这几天又有了400余条广告了。。。。。。。

    [回复]

    郑义文 回复:

    具体我已经发你邮箱了,请查看。

    [回复]

  32. Posted 2011年08月16日 at 14:26 | Permalink

    写得不错,学习了。

    [回复]

  33. Posted 2011年09月8日 at 13:02 | Permalink

    以后我要在我的wp
    上加版权

    [回复]

  34. Posted 2011年09月19日 at 11:55 | Permalink

    回去用zblog试下

    [回复]

  35. Posted 2011年09月27日 at 10:59 | Permalink

    评论的版权是怎么算的

    [回复]

  36. Posted 2011年09月29日 at 15:56 | Permalink

    加版权就这么简单,学习啦。

    [回复]

  37. Posted 2011年09月30日 at 13:33 | Permalink

    楼主很给力

    [回复]

  38. Posted 2011年10月15日 at 10:32 | Permalink

    我正好找这个代码,,真的谢谢你!!

    [回复]

  39. Posted 2011年11月3日 at 09:45 | Permalink

    加油,细节决定成败,支持博主

    [回复]

  40. Posted 2011年11月16日 at 15:37 | Permalink

    学习了~~谢谢楼主分享

    [回复]

  41. Posted 2011年12月6日 at 08:54 | Permalink

    这是一个非常不错的blog,决定天天来 谢谢博主分享!

    [回复]

Post a Comment

Your email is never shared. Required fields are marked *

*
*