How to add nofollow to all blogroll in WordPress

By adding below code to your functions.php you can make a nofollow links to your WordPress blogroll bookmarks.

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

Related posts:

HTML5 page structure

HTML5 offers more powerful structure comparing to older versions of Html. There are many new …


Partner with Us

We are providing an exclusive partnership offer to individuals and companies who are interested in setting up their own web design & development company. For more information about how to partner with us, please contact us