Forums

[resolved] Nofollow Case by Case plugin not working....I think??? (4 posts)

  1. mwelch
    Member
    Posted 1 year ago #

    mmmm....hi all. In a bit of a pickle here.

    Just installed the Nofollow Case by Case plugin, yet my Firefox SEOQUAKE is still showing my commentators with a nofollow line through them.

    Any ideas?

    I installed the plugin as normal.

    Thanks for your time!

  2. mwelch
    Member
    Posted 1 year ago #

    So hold true for for Dofollow plugin. I've deactivated and reactivated all my plugins starting with dofollow which WORKED. But when I activated Disqus it stop working.

    So it's definitely a conflict with these plugins.

    So it looks like it needs to be hard coded. Anyone know which file I need to edit?

    Thanks!

  3. mwelch
    Member
    Posted 1 year ago #

    OK think I found the file to edit but still no success ;(

    I edited the wp-includes/comment-template.php

    $return = "<a href='$url' rel='external nofollow' class='url'>$author</a>";

    to

    $return = "<a href='$url' rel='external' class='url'>$author</a>";

    Did i edit the code incorrectly?

  4. toughride
    Member
    Posted 1 year ago #

    I found somewhere else that the lines to edit in wp-includes/comment-template.php are as follows...

    function comments_popup_link( $zero = false, $one = false, $more = false, $css_class = '', $none = false, $nofollow = true )
    $title = esc_attr( get_the_title() ); if($nofollow) { $nofollow = ' rel="nofollow"';}
    echo apply_filters( 'comments_popup_link_attributes', '' );

    Hope this helps

Topic Closed

This topic has been closed to new replies.

About this Topic