Monday, September 30, 2013

How to hide links inside comments in blogger

Hide links inside comments: Now a days it becomes the headache of Bloggers and other content publishers that readers are spamming their links inside the comments. Sometimes a single reader put a lot of links in only one comment.So this looks quite ugly in professional Blog, obliviously every want his blog to be professional so its the time to hide links in your comments it will surely become a cause of you blog grooming.
prevent-spamming

How To Hide Links In Comments

  • First go to blogger dashboard.
  • Click on your site and then on Template tab.
  • Now click on the edit HTML tab there.
  • Proceed in the coding of the template.
  • And find </body> code by pressing ctrl+f.
  • If you haven,t have jQuery script in your blog then copy and paste the below code above
    </body> tag.
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'/>
  • If you have already added JQuery script to your blog then simply paste the below code above the </body> tag. 
<script> 

$('.comment-content a[rel$=nofollow]').replaceWith(function(){return ($(this).text());});

</script>

    If you want to Completely Remove the Links(Additional)

    • Then instead of pasting the above code.
    • Paste the below code above the </body> tag.
    <script>

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

    </script>
    • Now hit the save template button.
    • Thats it! you have done removing spammers.
    If you have problem while doing this hack simply ask us through the comment box.

    Ditulis Oleh : Unknown // 7:17 AM
    Kategori:

    0 comments:

    Post a Comment

     

    Blogger news

    Blogroll

    About