Open Comment Author url/link in new window of your wordpress blog


Hello Friends,
I am using wordpress blog and i want to do change when visitors/author give comment in post/article in wordpress blog,the author url/link should open in new window so when any visitor will look at comment and if they want to go in author's website than website will open in new window(target = '_blank'). Main objective is , visitor still have your site open in tab or window and they will not navigate from your wordpress blog.

Below is the solution how to add target='_blank' in comment url of your wordpress blog.

1) Logged in to FTP/C-Panel
2) Open wp-includes/comment-template.php

Find function get_comment_author_link

Find :
$return = "<a class="url" href="$url" rel="external nofollow">$author</a>"

Replace :
$return = "<a class="url" href="$url" rel="external nofollow" target="_blank">$author</a>"

Now save that file and look at a post with comment. Surely it works.

To know more about programming,JavaScript issues,jQuery,Expression Engine,MYSQL database,php info,php editor,programming php,Open-source,php help and php script , subscribe to our feed by entering email address below. You will get updates via email about every tutorial posted on this site . It will not take more than a sec.

Enter your email address:
Feel free to ask any question. Just leave your comment below and we will answer your comment with in 24 hours.

About Rakshit Patel
I am PHP Freelancer, Rakshit Patel AKA WordPress Freelancer working as PHP Programmer India. I am here to share all my developing knowledge, quick coding techniques, quick solutions to save your time and help you guys for any issue or bug fixing. If you have any PHP, WordPress, Magento related work, please contact me. I am interested for the work.

37 Comments on Open Comment Author url/link in new window of your wordpress blog

  • infopediaonlinehere
    March 2, 2010 at 7:10 pm

    I have same configuration in my blogger you know how to navigate to commentators page in a new window in blogspot

  • infopediaonlinehere
    March 3, 2010 at 12:40 am

    I have same configuration in my blogger you know how to navigate to commentators page in a new window in blogspot

    October 29, 2011 at 1:55 pm

    excellent, work fine

  • Clash of Clans Hack
    July 10, 2013 at 10:07 am

    Hi this is somewhat of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with
    HTML. I’m starting a blog soon but have no coding knowledge so I wanted to get guidance from someone with experience. Any help would be enormously appreciated!

  • stickers for laptop
    September 4, 2013 at 8:16 am

    If you are going for finest contents like myself, only pay
    a visit this web site all the time because it presents feature contents, thanks

  • atdhe
    September 9, 2013 at 3:55 am

    As the admin of this website is working, no uncertainty very shortly it
    will be famous, due to its feature contents.

  • 行銷
    November 12, 2013 at 8:44 am

    Howdy! I simply want to give an enormous thumbs up for the great
    info you have got here on this post. I shall be coming back to your blog for more soon.

  • Hungry Shark Evolution Megalodon Hack
    December 22, 2013 at 8:38 pm

    I like what you guys are usually up too. This kind of clever work
    and coverage! Keep up the fantastic works guys I’ve included
    you guys to my personal blogroll.

  • Felix
    December 27, 2013 at 7:27 am

    Way cool! Some extremely valid points! I appreciate you writing this write-up and
    the rest of the site is also very good.

    January 13, 2014 at 1:53 am

    I do not even understand how I finished up here, but I thought this publish was great.
    I do not recognize who you are however definitely you are going to a well-known blogger
    if you happen to aren’t already. Cheers!

  • Joseph
    January 13, 2014 at 2:50 am

    Woah! I’m really loving the template/theme of this site.
    It’s simple, yet effective. A lot of times it’s challenging to get that “perfect balance” between superb usability and visual appeal.
    I must say you have done a amazing job with this. Additionally,
    the blog loads super quick for me on Safari. Exceptional Blog!

  • Goodbye Eusebio
    January 14, 2014 at 12:01 pm

    I know this web site presents quality based content and other stuff, is
    there any other site which presents these information in quality?

  • Thermoskin Arthritis gloves review
    January 17, 2014 at 10:33 pm

    Nice post. I learn something new and challenging on sites I stumbleupon every day.
    It wwill always be exciting tto read articles feom
    other authors aand practice a little something from other sites.

  • seo網路行銷
    February 1, 2014 at 11:20 am

    Hey! I just want to give a huge thumbs up for the nice information
    you will have here on this post. I might be coming back to your
    weblog for more soon.

  • noadware
    February 22, 2014 at 9:11 pm

    Hi to every one, the contents present at this web page are truly amazing
    for people experience, well, keep up the good work fellows.

  • Cat Flats
    March 6, 2014 at 9:40 pm

    Hmm it seems like your website ate my first comment (it was extremely long) so I
    guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog.
    I as well am an aspiring blog blogger but I’m still new
    to the whole thing. Do you have any recommendations for beginner
    blog writers? I’d certainly appreciate it.

  • web site
    March 10, 2014 at 3:03 am

    It’s amazing for me to have a web site, which is good for my experience.
    thanks admin

  • Brigitte
    April 18, 2014 at 10:26 pm

    Hi there, always i used to check website posts here
    in the early hours in the morning, for the reason that i enjoy to find out more and more.

  • เสื้อคู่รัก
    April 25, 2014 at 2:50 am

    If some one needs to be updated with newest technologies after that he must be visit this site and be up to date all the time.

  • Towing and Repossession Software
    April 26, 2014 at 11:48 pm

    Hi, I do believe this is a great website. I stumbledupon it 😉 I am going to return once again since i have bookmarked
    it. Money and freedom is the best way to change, may you be rich and continue to help
    other people.

  • book best offer
    April 27, 2014 at 12:41 am

    Howdy just wanted to give you a brief heads up and let you know a few of the
    pictures aren’t loading properly. I’m not sure why but I think its a linking issue.
    I’ve tried it in two different browsers and both show the same outcome.

  • vantage bay
    April 30, 2014 at 2:27 pm

    Great blog you have here but I was wondering if you knew of
    any community forums that cover the same topics discussed here?
    I’d really like to be a part of community where I can get suggestions from other knowledgeable individuals that share the same interest.
    If you have any recommendations, please let me know.

    Bless you!

  • cheap shopping carts
    May 1, 2014 at 6:50 pm

    It’s wonderful that you are getting ideas from this paragraph as well as from our discussion made at
    this time.

  • car game
    May 16, 2014 at 6:02 pm

    Pretty! Thiss was a really wonderful article.
    Thank you for supplying this info.

  • Helicopter Game
    May 16, 2014 at 6:20 pm

    I’m really imporessed with your writing skills as well as with the layout on your blog.
    Is this a paid theme or did you customize it yourself? Either
    way keep up the excellent quality writing, it is rare to seee a nicde blog like
    thiss one today.

  • Steam Keygens
    May 23, 2014 at 5:45 pm

    Way cool! Some extremely valid points! I appreciate
    you writing this article and also the rest of the site is
    really good.

  • Does the venus factor work
    May 26, 2014 at 3:13 am

    Spot on with this write-up, I actually feel
    this web site needs far more attention. I’ll probably be back again to
    read more, thanks for the info!

  • Azucena
    May 29, 2014 at 7:51 pm

    Simply wish to say your article is as astounding.
    The clarity in your post is just excellent and i could assume you are an expert on this subject.
    Fine with your permission let me to grab your RSS
    feed to keep updated with forthcoming post. Thanks a million and please keep up
    the rewarding work.

  • Erlinda
    June 14, 2014 at 1:05 am

    I read this piece of writing fully about the comparison of most up-to-date and preceding technologies, it’s awesome

  • Tabitha
    June 20, 2014 at 12:20 pm

    I am really loving the theme/design of your site.
    Do you ever run into any web browser compatibility issues?
    A number of my blog readers have complained about my
    website not working correctly in Explorer but looks great in Firefox.
    Do you have any ideas to help fix this problem?

  • kik android update
    September 6, 2014 at 8:21 am

    My brother recommended I may like this blog.
    He was totally right. This submit truly made my day. You cann’t imagine simply how much time I had spent for this info!




DHgate Computers - Computers, Cell Phones & more
  • We find everbuying built in php and use css to control the style.

About Author

PHP Freelancer

PHP Freelancer I am PHP Freelancer, Rakshit Patel working as PHP Programmer India. I am here to share all my developing knowledge with you people. For Hire PHP Developer India, contact me.
Follow on twitter: @raxit4u2

Get Free Programming Tutorials:

Become a Fan

Popular Topics

Recent Posts

Most Popular

Recent Comments

Get a Free Quote
Security Question: 3 + 8 = ?