How to open comments in new window in WordPress

Wordpress 22 February 20100 Comments

As I stated in mine post Should Comments open in same window or different windows , I asked you to open your comments in new window. Here I am telling you how to do this. WordPress by default open the comments in same window.

To force your site to open external comments in new tab, follow the below steps:
1. Login to your ftp account.
2. Go to your_sitepublic_htmlwp-includes
3. Download the file comment-template.php
4. Search for function ‘get_comment_author_link
5. Go the line– $return = “<a href=’$url’ rel=’external nofollow’ class=’url’>$author</a>”;
6. Place target=’_blank’ after <a . Don’t forget to give a space <a 
7. The line looks now–  $return = “<a target=’_blank’ href=’$url’ rel=’external nofollow’ class=’url’>$author</a>”;
8. Upload the file .
9. ftp will ask to Overwrite the file. Click Yes.
10. Now, open your blog.
11. The comments now will open in new browser tab.

NOTE: Back-up file comment-template.php before making any changes to it.

Related Posts with Thumbnails

Bookmark It!!!

Buzz It   Twitt It   StumbleUpon It   Facebook It   Digg It   Delicious It   Reditt It   Reditt It  

Author

Atul

Atul - who has written 100 posts on Tech Of Web.

Atul is a professional blogger and techie who writes at TechOfWeb.

Subscribe to TechOfWeb feed via RSS || EMAIL || Twitter || Facebook to get instant latest tech updates.

Contact the author

Share your view

Post a comment

  •  
  • Hostgator Web Hosting Elegant Themes Thesis Theme Woo Premium Themes

    © 2010 Tech Of Web. Powered by Wordpress.

    Wordpress themes by Woo Themes