Tuesday, September 10, 2013

Remove,Disable Or Open Hyperlinks In New Tab In Blogger Comments

9:21 PM

Tricks To Stop Or Reduce Spamming
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

    Open links in blogger comment in new tab
  1. Log in to your blogger account.
  2. Go to your blog dashboard.
  3. Navigate to Template and click on Edit HTML.
  4. Search for </body> (Ctrl + F)
  5. Paste the following code before the above code. 
  6. 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)         

  1. Log in to your blogger account.
  2. Go to your blog dashboard.
  3. Navigate to Template and click on Edit HTML.
  4. Search for </body> (Ctrl + F)
  5. Paste the following code before the above code. 
  6. Save the template and you are all done!      
                                                                                     
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'/>
<script> 
$('.comment-content a[rel$=nofollow]').replaceWith(function(){return ($(this).text());}); 
</script> 

Completely Remove The Links 

  1. Log in to your blogger account.
  2. Go to your blog dashboard.
  3. Navigate to Template and click on Edit HTML.
  4. Search for </body> (Ctrl + F)
  5. Paste the following code before the above code. 
  6. Save the template and you are all done!         
 
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'/>
<script>  
$('.comment-content a[rel$=nofollow]').hide());
</script>

With this useful and simple trick you need not worry about spam comments!
If you found a problem with this post please report us using the contact us page or the form below.
Leave your comments about this trick.Feel free to ask your doubts in the comments.

Written by

We are one of the initiators of the development of information technology in understanding the need for a solution that is familiar and close to us.

0 comments:

Post a Comment

 

© 2013 Klick Dev. All rights resevered.

Back To Top