Thread Starter
mjvito
(@mjvito)
I too have the same issue – it also means its posting twice to my FB time line when I put my on handle on it. http://www.thebrecklandview.com
This really should be an option
You can replace “@jetpack” by your own Twitter account by going to Settings > Sharing in your dashboard, and filling in the “Twitter Site Tag” option at the bottom of the page.
I hope this helps.
Thanks Jeremy,
I already did that and I would make two points why that is not a good way out.
I tweet every article when I post it using my account so adding via @brecklandview at the end is pointless since that is the account tweeting!
Secondly, for SEO reasons I like each article post url to be the headline which means long post URLs so adding via @brecklandview (which is also a link to Twitter) eats away 20 odd chars from my 160 chars.
This impacts so badly for me, I am considering disabling the feature 🙁
Please see if it can be disabled and make me happy 🙂
Thread Starter
mjvito
(@mjvito)
Thanks for taking a look Jeremy. (btw, minor kinks aside, I love the work you do with Jetpack!)
Because we don’t to append any twitter handle, which isn’t a UI option, the Twitter Site Tag field doesn’t resolve the need. I was able to find a code tweak that works for the moment. I just added the filter that used to be what people inserted to add their own Twitter handle, but loaded an empty string into my variable:
/* Filter Jetpack Twitter Card Site Tag */
function my_jetpack_twitter_cards_site_tag( $tag ) {
$tag = '';
return $tag;
}
add_filter( 'jetpack_twitter_cards_site_tag', 'my_jetpack_twitter_cards_site_tag' );
I see the latest update no longer adds the via @jetpack if the Twitter handle in settings is blank.
Thank you for that 🙂
What a brilliant team.
Thread Starter
mjvito
(@mjvito)
Yes, just saw it a moment ago. Thank you!
Thank you so much! Really appreciate this. 😀
@mjvito That’s a good solution, yep!
However, this won’t work if you’ve connected your Twitter account to Publicize. In this case, Jetpack automatically uses that twitter account in the “via” field, even if you didn’t fill in a Twitter site tag under Settings > Sharing in your dashboard.
If you want to make that there won’t be any “via” mention added to the sharing buttons, I would suggest using the jetpack_sharing_twitter_via
filter, like so:
add_filter( 'jetpack_sharing_twitter_via', '__return_empty_string', 11 );
Thread Starter
mjvito
(@mjvito)
Perfect. Even simpler! Thanks a bunch Jeremy.