WordPress.org

Support

Support » Plugins and Hacks » Twitter Widget Pro » [Plugin: Twitter Widget Pro] Hide title

[Plugin: Twitter Widget Pro] Hide title

Viewing 5 replies - 1 through 5 (of 5 total)
  • I would like this option as well!

    I found something that worked for me. In the file wp-twitter-widget.php in the plugins folder, I deleted the following lines at line 561

    if ( empty( $args['title'] ) )
    			$args['title'] = "Twitter: {$args['username']}";
    
    		$args['title'] = apply_filters( 'twitter-widget-title', $args['title'], $args );
    		$args['title'] = "<span class='twitterwidget twitterwidget-title'>{$args['title']}</span>";
    		$widgetContent .= $args['before_title'] . $args['title'] . $args['after_title'];

    Don’t know if it’s safe or right, but it worked for me and I haven’t come across any errors yet.

    dont remove it.. just put “//” infront of the lines

    // if ( empty( $args['title'] ) )
    //	$args['title'] = "Twitter: {$args['username']}";
    
    //      $args['title'] = apply_filters( 'twitter-widget-title', $args['title'], $args );
    //      $args['title'] = "<span class='twitterwidget twitterwidget-title'>{$args['title']}</span>";
    //      $widgetContent .= $args['before_title'] . $args['title'] . $args['after_title'];

    Thanks for this information guys!

    Possibly put this in your css

    .twitterwidget-title{
    	display:none;
    }

    Might be better then deleting code from the files. then you can do your updates?

    I don’t know if this is good practice or anything.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Twitter Widget Pro] Hide title’ is closed to new replies.
Skip to toolbar