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.









Recent Comments