Remove nofollow attributes from comment text


Sponsored Links




WordPress added nofollow attributes on comment text url, this is bad for some commeter that needed some backlinks, if you want remove nofollow attributes from comment text in your WordPress site is easely, all need to do just added some code on functions.php on your theme and added some wordpress hooks using add_filter functions and your external url on comment text will be gone.

Write down to remove noffolow attributes on comment text below

function remove_nofollow($string) {
	$string = str_ireplace(' rel="nofollow"', '', $string);
	return $string;
}
add_filter('comment_text', 'remove_nofollow');

And done, now you can check on your comment area with url and the nofollow attributes is gone ;) thanks for DigWP for share this code

Subscribe to Full RSS Feed

RSS FeedIf you thing this article useful, please consider subscribing to our RSS Feed or e-mail updates and stay updated with us. You can also follow @WPTricksNet on twitter for latest updates.

About WP Tricks

We are WordPress Family, we collected and writed useful tips and tricks for you WordPress. We share it for you...

Related Tips and Trick from Local Data and on The Net

Comprehensive Reference for WordPress No-Nofollow/Dofollow Plugins

Selectively remove nofollow from author/text links; Selectively remove easy-to-use plugin that enables users to remove nofollow attributes from author links and comment Read More

nofollow - Wikipedia, the free encyclopedia

The nofollow value was originally suggested to stop comment spam in blogs. www.example.com/" rel="nofollow">Link text that automatically remove the nofollow Read More

#10550 (nofollow attribute added to comment_reply_link function

Within wp-includes/comment-template.php there are nofollow attributes on the reply to comment links and that is remove the nofollow to edit the Reply to comment text Read More

rel="nofollow" - Webmaster Tools Help - Google

transfer PageRank or anchor text across these links. Essentially, using nofollow In particular, comment spammers may however, you may choose to remove the nofollow link. Read More

How To Get More Comments On Your Blog By Removing ‘No Follow’

Removing no follow from the comment text. You may also want to remove no follow from the text Do Follow 4.0 disables the rel=”nofollow” attributes added to external Read More


44 Responses to Remove nofollow attributes from comment text

  1. Pingback: Tutorial Remove all nofollow attributes from comments # WordPress Tricks & Tips

  2. These sure are helpful tips that will keep our life rolling in a positive direction.

  3. Acai says:

    I haven’t removed the nofollow because I want other website owners to comment and stay an active part of the community. Yes, they may read only for the link, but if they put crap comments I delete them anyway. If they comment something that has value, I leave it, and I think they will probably come back and learn something (maybe even make a purchase eventually).

  4. 倩碧 says:

    This post was mentioned on Twitter by Dan James and Kind Canine, WordPress Tricks. WordPress Tricks said: RT @WPTricksNet

  5. 薇姿 says:

    Tricks Tweak Twitter Users Widget WordPress 3.0

  6. 磅秤 says:

    WordPress comment box then there is no fun in commenting for readers as well as writers.

  7. My close friend and I had been arguing about a problem related to this! Now I know that I appeared to be correct. Many thanks for the information you published.

  8. I have tried to do this many times and cannot get it to function can someone help me?????

  9. “dofollow” motivates ohter website owners to contribute some content to your website. It’s a great way to increase the number of keywords in a post. If the comments are relevant i approve them.

  10. Vimax says:

    How to know the website dofollow or not?

  11. jack L says:

    thamks your code for my wordpress to remove nofollow atrributes from comment text.but it seems hard for me,because i don’t know much about javascript and html.

  12. Social Media says:

    Thanks for this advice, i was already wondering how to implement dofollow links into my wordpress blog.

  13. Thanks for the info. I was wondering if my Word Press blog was nofollow and if so how to remove it. Had trouble finding this information.

  14. Houston SEO says:

    Excellent article and thank you for sharing! This is exactly what I was looking for.

  15. Anon says:

    Thanks, all the Dofollow plugins seems to be broken for WP 3.O.(nofollow still there. I’ll try this one out.

  16. sara says:

    Why your site is nofollow and you are posting about making blogs dofollow? :)

  17. This will improve my wordpress blog a lot. Thx for all those usefull tips and tricks.

  18. cihip says:

    Remove nofollow attributes from comment text post for thanx.

  19. Bad Man says:

    Thanks for this post, This is exactly what I was looking for.

  20. I tried this but didn’t work, i got a 404 error… weird. Anyone has any idea ?

  21. Christmas says:

    >>I tried this but didn’t work, i got a 404 error… weird. Anyone has any idea ?

    I did everything exatly like explained and everything works great. Maybe you do smth wrong? Follow the instructions attentively

  22. Dan says:

    Need help on creating a website? Visit webmasterwizard.net for help!

  23. Thanks for the wordpress advice. No Follow on out going links is normally a waste of time these days unless you know it’s a bad neighborhood.

  24. I thought about How To Remove nofollow attributes from comment text # WordPress … and found this post. Thanks for sharing!

  25. Kindle Book says:

    Interesting! This is my favorite post about How To Remove nofollow attributes from comment text # WordPress ….

  26. I never tried this before.Thanks for sharing this information .

  27. jump starter says:

    Very thanks ,I am looking for it !

  28. bebo says:

    thanks for the no follow tips

  29. jump start says:

    very thanks , I am looking for these codes

  30. Good article and thank you for sharing! This is exactly what I was looking for.

  31. Toys Review says:

    Your idea is good to apply. thanks very much

  32. Thank you for sharing, very usefull & interesting..

  33. Nice tips for Remove nofollow attributes from comment text

  34. ON Share says:

    Nice tips, thank’s for your posting

  35. Pingback: How To Automatically Refuse Comment without Plugin | WordPress News Wire

  36. You have given a very useful lesson on how to remove nofollow attribute from comment text as it essential for a commenter who wants back link to his site. Moreover, this feature discourages the visitors from commenting and leaving a back link. Nice post indeed.

  37. Thanks for the post. This is just what I need. It’s always good to just let the comments be do-follow. I always do it. For me, it’s just giving something back to those who need the backlink juice. As long as the comments are not spam, it’s okay to let people have the backlink.

  38. rainer says:

    just create my own blog, and find a way to remove nofollow attributes since i forgot how to do it. rather than using plugin i prefer this way

    thank you very much for this..

  39. pardeep says:

    even you have implemented NO FOLLOW tag, How a visiter can turn on DO follow tags in Comments! or remove nofollow tag from his comment!

  40. pardeep says:

    so that visiter could take benefit ,or increase his back links !

  41. Thank you for the update. I am new to SEO and although its still a mystery for me on how to use this but I will study this for sure it will help me lot.Thank you once again for the informative post…

  42. Useful bit of code but nowadays I am sure you can get themes which allow you to do this more easily, plus plugins as well. Firefox has some great addons which will give a visual indication of any nofollow links too.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>