Skip to content

让wordpress评论者链接在新窗口中打开

2009 十月 28
by 荒野无灯

直接切入正题:
打开/wp-includes/comment-template.php

查找 function get_comment_author_link

简单地添加

1
target='_blank'

就OK了,如下图:

get_comment_author_link

喜欢这篇文章吗?

请订阅本站 RSS feed填写您的邮件地址,订阅我们的精彩内容:,欢迎点击这里捐赠以支持荒野无灯转播到腾讯微博 转播到腾讯微博

作者:荒野无灯
出处:Hacklog【Hacklog】

声明: 本站遵循 署名-非商业性使用-相同方式共享 3.0 共享协议. 转载请注明转自Hacklog【荒野无灯weblog】

本文链接: http://ihacklog.com/?p=2812

16 Responses Post a comment
  1. 十一月 6, 2010

    加上了,但似乎没什么效果 :!:

    • 十一月 6, 2010

      直接在functions.php改

      1
      2
      <?php if (get_comment_author_url()) : ?>
                              <a id="commentauthor-<?php comment_ID() ?>" href="<?php comment_author_url() ?>" target="_blank" rel="external nofollow" title="<?php comment_author(); ?>">
  2. 七月 25, 2010

    取走咯~~ :razz:

  3. 十一月 12, 2009

    刚用上了 嘿嘿~

  4. 十一月 6, 2009

    刚好今天要用到,借走了!

  5. 十一月 2, 2009

    这一招,无论如何也要领教受用了!

    另,兄弟域名很强大,hack + log !

  6. 十一月 2, 2009

    之前都是用右键,加上了~现在好多了,感谢!

  7. 十月 30, 2009

    这个可以加上,去加了~~

  8. 十月 28, 2009

    我之前都是右键,新标签,现在方便了。

  9. 十月 28, 2009

    恩,很好,我一直想加个

  10. 十月 28, 2009

    嗯 我要去添加以下

Trackbacks & Pingbacks

  1. Wordpress 升级至3.0备忘 | 阿邙’S Blog

Leave a Reply

Allowed Tags - You may use these HTML tags and attributes in your comment.

<a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <q cite=""> <strong>

 :wink:  :-|  :-x  :twisted:  :)  8-O  :(  :roll:  :-P  :oops:  :-o  :mrgreen:  :lol:  :idea:  :-D  :evil:  :cry:  8)  :arrow:  :-?  :?:  :!:

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS