Remove linksYou can easily remove all of the links from the comments of your blog by pacing some codes in your template. Now you may have a question that why you will remove links for the comment body. Removing links from the comment body will help you to avoid comment spam. There are a lot of people using bots to promote their products or sites. These bots will come to your site, make some meaningless comments and put some links in the comment body. There is no reason to publish these comments but you can encourage those people not to send bots to your site by disabling links in the comment section of your blog. Let’s see how we can remove all links from the comment body.

How we can remove links

  • Log in to your blogger dashboard
  • Go to Template --> Edit HTML
  • Now you need to make some changes. Create back up your template.
  • Press CTRL+F to search and find </body> tag
  • Then copy and paste the below codes above the </body> tag.
<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>    
Attention: If the red highlighted code is already in your template then no need to paste it again. Just paste the black code above the </body> tag. 
  • Now save your template and check your blog.
If you are facing any problem removing links or the code is not working in your blog feel free to inform me in comments. Please subscribe to our RSS feed to get updated with our recent posts.


Post a Comment

Previous Post Next Post