WordPress.org

Forums

Twitter Widget Pro
[resolved] Make links No Follow (3 posts)

  1. Adam Chahl
    Member
    Posted 2 years ago #

    Hi There,

    Great plugin!

    Is there a way I can make the outgoing links 'No Follow'?

    Cheers,
    Adam

    http://wordpress.org/extend/plugins/twitter-widget-pro/

  2. Aaron D. Campbell
    Member
    Plugin Author

    Posted 2 years ago #

    You can add nofollow to all links in the Twitter Widget with this code (put it in another plugin, an MU plugin, or your theme's functions.php):

    function range_widget_twitter_no_follow( $attributes ) {
    	$attributes['rel'] = 'nofollow';
    	return $attributes;
    }
    add_filter( 'widget_twitter_link_attributes', 'range_widget_twitter_no_follow' );
  3. Adam Chahl
    Member
    Posted 2 years ago #

    Perfect. I just threw it in the themes functions.php

    Appreciate the swift reply!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Twitter Widget Pro
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.