Now a days everyone owns a blog and everyone wants their blog to rank No.1. So many people adopt bad techniques to get more backlinks.Most users adopt blog commenting to make backlinks.Most comments that we receive are HTML formatted and it contains links.So you don't want to remove all the comments that contains links nor you want your users to leave your site through that link.I have found a solution for this problem.Now with this trick you can learn how to open all the links in the comment in a new tab.You can also learn how to remove the link in the comment without removing the anchor text and to remove the comment completely.
Open Hyperlink In New Tab In Blogger Comments
- Log in to your blogger account.
- Go to your blog dashboard.
- Navigate to Template and click on Edit HTML.
- Search for </body> (Ctrl + F)
- Paste the following code before the above code.
- Save the template and you are all done!
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'/> <script> $(function(){ $('.comment-content a[rel$=nofollow]').attr("target","_blank"); }); </script> |
Remove The Link Only(Anchor Text Not Removed)
- Log in to your blogger account.
- Go to your blog dashboard.
- Navigate to Template and click on Edit HTML.
- Search for </body> (Ctrl + F)
- Paste the following code before the above code.
- Save the template and you are all done!
Completely Remove The Links
|
0 comments:
Post a Comment