Ads (728x90)

Latest Post

Kesehatan

Tips

Disable Hyperlink on Blogger Comment


Are you facing problem with spam commentators on your blog by their hyperlinks?So here we're going to give you a permanent solve from this.It'll permanently disable hyperlinks on your blogger comment section.


How to Do This?



  • Goto blogger dashboard>edit html>proceed
  • Search for </body>  and before it add the following code

<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>

If you want to completely remove the links from the comments , then use this code instead


<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'/>
<script>

$('.comment-content a[rel$=nofollow]').hide());

</script>

  • Save the template and you're done
Hope it'll really help your blog from spam comments.Feel free to ask if you face any problem regarding this.

Post a Comment