Support » Plugin: Sociable » [Plugin: Sociable] the_excerpt adding text…

Viewing 2 replies - 1 through 2 (of 2 total)
  • I too have found this problem. I will let you know if I find a workaround.

    EDIT: I found a workaround by going into the plugin. I went to the one labeled Twitter, found where it had:

    return '<a href="http://twitter.com/share" class="twitter-share-button" data-url="'.get_permalink().'" data-text="'.get_the_title().'" data-count="'.$this->option('button').'">Tweet</a>'

    and removed the Tweet from inside the anchor. It doesn’t seem to have any immediate problems.

    Cleaner solution.

    Add this to your functions.php

    function fix_social_excerpts($content){
    	$content = str_ireplace('tweet','',$content);
    	return $content;
    }
    add_filter('the_excerpt', 'fix_social_excerpts');
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Sociable] the_excerpt adding text…’ is closed to new replies.