Home / bookmarks / Make blogroll links nofollow
  • How to Make blogroll links nofollow

    no thumbnail sorry: Make blogroll links nofollow

    Adding this PHP code to the functions.php will make add nofollow to all blogroll bookmarks.

    ( click code to copy )

    wordpress snippet : PHP - functions.php

    <>
    function no_follow( $links ) {
        foreach($links as $link) {
           $link->link_rel .= ' nofollow';
           $link->link_rel = trim($link->link_rel);
        }
           return $links;
    }
    add_filter('get_bookmarks', 'no_follow');
    

    ( WordPress codex functions, hooks, in this snippet. )

    get_bookmarks, get_bookmark, add_filter,