WordPress.org

Ready to get started?Download WordPress

Forums

Twitter Widget Pro
Hide title (6 posts)

  1. keigokato
    Member
    Posted 2 years ago #

    How do you hide the title altogether? I just want the feeds to show up, as I have a separate style controlling the title. Otherwise, looking really cool. Thanks

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

  2. luniablue
    Member
    Posted 2 years ago #

    I would like this option as well!

  3. luniablue
    Member
    Posted 2 years ago #

    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.

  4. ferdri3
    Member
    Posted 2 years ago #

    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'];
  5. heidifromm
    Member
    Posted 2 years ago #

    Thanks for this information guys!

  6. willmcl
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic