WordPress.org

Forums

Adding 'NoFollow' to WP-PageNavi (3 posts)

  1. Daniel Haim
    Member
    Posted 4 years ago #

    Hi everyone. I am trying to add a rel="nofollow" to WP-PageNavi plugin, http://wordpress.org/extend/plugins/wp-pagenavi/.

    I have opened the core.php file, on line 143 added a rel="nofollow" but it breaks the plugin.

    return "<a href='" . esc_url( get_pagenum_link( $page ) ) . "' class='$class'>$text</a>";

    Could anyone tell me what I'm doing wrong? What should I do to make all pagination from the plugin a nofollow?

  2. Daniel Haim
    Member
    Posted 4 years ago #

    Ok here is the final code

    return "<a rel='nofollow' href='" . esc_url( get_pagenum_link( $page ) ) . "' class='$class'>$text</a>";
    }
  3. bigu_c
    Member
    Posted 4 years ago #

    Hello,

    Thanks for the mod code,

    But "Next" and "Previous" (>> and <<)link still DoFollow.

    What's your solution today?

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.