Tired of blog spamming? I have the best solution for you to remove or hide spam links from comments of your blog.
The comment section of a blog has a vital role in deciding the search engine ranking because it is a part of on-page SEO. As we all know blog commenting is one of the easiest ways to earn backlinks and traffic to any blog. Whether your blog is old or new, every blogger should have an effective comment strategy.
Newbie bloggers always try to gain more backlinks to increase their website ranking. So, they will insert some hyperlinks in the comment box. This will leads to spamming and there is a chance to deviate the visitors from your site to other.
So when commenting always try to include keywords this will help you as well as the author of that post. Try to remove spam links while adding your thoughts, you don't need to put a link every time to get backlinks. Even no-follow blog comments can also generate traffic if your thoughts are informative.
Sometimes we get quality comments with links in it, then we don't wants to avoid it completely but we likes to publish it without the spam link in it. So here I will explain ways to remove or hide spam links from a blogger comment box.
The comment section of a blog has a vital role in deciding the search engine ranking because it is a part of on-page SEO. As we all know blog commenting is one of the easiest ways to earn backlinks and traffic to any blog. Whether your blog is old or new, every blogger should have an effective comment strategy.
Newbie bloggers always try to gain more backlinks to increase their website ranking. So, they will insert some hyperlinks in the comment box. This will leads to spamming and there is a chance to deviate the visitors from your site to other.
So when commenting always try to include keywords this will help you as well as the author of that post. Try to remove spam links while adding your thoughts, you don't need to put a link every time to get backlinks. Even no-follow blog comments can also generate traffic if your thoughts are informative.
Sometimes we get quality comments with links in it, then we don't wants to avoid it completely but we likes to publish it without the spam link in it. So here I will explain ways to remove or hide spam links from a blogger comment box.
Warning: As usual, we have to insert some codes to template HTML, so keep a backup of your current template.
Hide spam links from blogger comments
Do you want to hide the link and the text also? If the answer is yes follow me, I will describe with step by step tutorial
.
1. From your Blogspot dashboard navigate to Template > Edit HTML and click anywhere inside the HTML code and press Ctrl +F to search for </head> tag.
2. Now copy the below piece of code and paste above the </head> tag.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" />Note: if you already added this jquery code, avoid this step.
3. Now search for the </body> tag and paste below code above the tag.
$('#comments p a').hide());
Remove spam links from blogger comments
Above method hide both the text and link, but by following these steps you can remove only the links but not the word which contains hyperlinks. Let's start,
First and second steps are same as above, after that insert below code above </body>
<script type="text/javascript">Now save the template, preview the post and ensure it is done properly.
$("#comments p a").each(function () {
$(this).replaceWith($(this).text());
});
</script>
Final word
We are successfully done it, now it's up to you, removing spam links from comment box is not the only solution always do comment moderation this will minimize the spam comments. Understand the type of comments and utilize it properly to enhance the SEO as well as the ranking of your blog.
Hope the tutorial is helped you, if you have any questions or doubts please feel free to share it with us via comments. Take care!
Comments
Post a Comment