18 March 2013

Disable Hyperlink on Blogger Comment

// // 19 comments
Disable Hyperlink on Blogger Comment

When a blog getting older and reaching popularity other blog owneres love to use that blog to gain popularity from that blog.So they just land on that blog,search several posts and leave a meaningless comment along with the url of their blog.They are called as spam commenters.As much as your blog would stay in this web it'll flooded with spam comments.So do you facing problem with spam commentators on your blog by their hyperlinks?Sometimes these makes you feel real annoying seeing their anchor text here and there on your blog's comment section.So today we're going to provide you a permanent solution from this.It'll permanently disable hyperlinks/anchor text from your blogger blog's comment section.



 Must Read : Spam Free Contact Us Form


Disable Hyperlink Using Jquery

  • First Log onto your blogger account
  • Next goto blogger dashboard>edit html>proceed
  • Now Search(ctrl+f) 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 all done

Disable Hyperlink Using CSS

  • First Log onto your blogger account
  • Next goto blogger dashboard>edit html>proceed
  • Now Search(ctrl+f) for ]]></b:skin>  and before it add the following code


.comment-content a { display: none;} 




  • Save the template and you're all done
Hope it'll really help your blog from spam comments.For more such exclusive tutorial stay updated with us throgh the rss feed and social widgets as well.If you like this tutorial don't for to share with your circle and your view with us about this post.Always feel free to ask if you're facing any problem regarding this.Thank you.
Articles You May Like

19 comments: Leave Your Comments

  1. This would really help eliminating spam comments.

    ReplyDelete
  2. Thanks for sharing! I need this! :)

    ReplyDelete
  3. just in time! for the past two day, my blogspot received 375 spam comments. they are approved automatically to my horror!

    ReplyDelete
  4. thanks for this info! very helpful!

    ReplyDelete
  5. This is awesome. I do experience a lot of spam comments on my blog but I have a wordpress plug in activated which filters spam comments and allows me to approve or delete them. :)

    ReplyDelete
  6. I have so many spam comments. Hope this will do the trick of stopping them :)

    ReplyDelete
  7. Awesome Article Debarpan But i Have a Question it Will Only Disable Hyperlinks From Comments, Is There anything That Will Automatically Delete Spam Blogger Comments.

    ReplyDelete
    Replies
    1. Nope,I think till now there is nothing like that for blogger

      Delete
  8. Is it for just the new spam comments because it doesn't seem to work? Could I have done it wrong?

    ReplyDelete
  9. How can I open all the links in the comments in a new tab?

    ReplyDelete
    Replies
    1. For that you have to use target='_blank' tag on your comment sytem.

      Delete
  10. Hello Man thanks
    and I want to ask that the first one remove link+text or only link ? and wat do you mean by remove completely ?? and i will disbale comment or delete those backlink fron my blog ?? must reply

    ReplyDelete
    Replies
    1. It means remove links+text both.There we provided three codes,use any of them to remove anchor text based comments from your comment section.Just give it a try and you'd understand the function.Explain the rest more clearly.

      Delete
  11. I have wasted my precious time to search article about remove hyperlink on blogger comments but nothing was working. At last I found your article and test it on my blog and it's working 100%.

    Thank you so much brother for helping us to remove hyperlinks in blogger comments.

    ReplyDelete
  12. Its my first time on your blog from Cameroon, I just got help here with this Jquery. Thanks

    ReplyDelete