Forums

[resolved] How do I remove the 'NoFollow' tag from comments in WP 2.7.1 w/o plugins (4 posts)

  1. acrofford
    Member
    Posted 3 years ago #

    I want to remove the 'nofollow' attribute from my comments but I do not want to use a plugin. Any idea on which file needs edited to do this?

    Thanks

  2. You should do it with a plugin because when you upgrade to the next release, you will lose all of your edits.

    That said:

    find wordpress/ -type f | xargs grep nofollow | cut -d':' -f1 | sort -u

    This finds "nofollow" in the following files:

    wordpress/wp-admin/edit-form-comment.php
    wordpress/wp-includes/comment-template.php
    wordpress/wp-includes/default-filters.php
    wordpress/wp-includes/formatting.php
    wordpress/wp-includes/general-template.php

    I'm not sure which ones would need to be changed but if you do change anything, backup your files, remember what you did and get ready to put the file back if you make a hideous mistake.

  3. acrofford
    Member
    Posted 3 years ago #

    That is a good point on using a plug in. The only problem I am having is that I have installed the Dofollow plugin but the comments still have the nofollow attribute.

    What is the best plugin for 2.7.1?

    Thanks,
    Andy

  4. acrofford
    Member
    Posted 3 years ago #

    Looks like No Follow Free works great. Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.