Support » Plugins » Adding 'NoFollow' to WP-PageNavi

  • dh

    (@danielhaim1)


    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • dh

    (@danielhaim1)

    Ok here is the final code

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

    Hello,

    Thanks for the mod code,

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

    What’s your solution today?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding 'NoFollow' to WP-PageNavi’ is closed to new replies.