NO Follow Wordpress Tag Cloud

/ Published in: PHP
Save to your folder(s)

Add the following code to functions.php
1: WP backend
2: Appearance -> Editor
3: functions.php

Copy this code and paste it in your HTML
  1. function add_nofollow_tag($sLink) {
  2. return str_replace('<a href=', '<a rel="nofollow" href=', $sLink);
  3. }
  4. add_filter('wp_tag_cloud', 'add_nofollow_tag');

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.