Styling jetpack sharing google plus button

Nothing profound.

I use jetpack so I wanted to use the provided sharedaddy module.

The google plus button is a new addition and displays the medium button with default annotation.

I don’t have the traffic to display annotations. I want to use the small button.

So per google’s docs, I edited the sharing-sources.php file

from

to

Better approach

Of course, the above hack reverted the next time I updated jetpack. So, I did this in javascript instead:

Note: (9/2012) Google updated their api to change from count=false to annotation=none. Snipped above updated to reflect this…

jQuery(‘.googleplus1_button iframe’).attr(“src”, jQuery(‘.googleplus1_button iframe’).attr(“src”).replace(/count=true/,”count=false”));

Comments

Comment from >BandonRandonNo Gravatar
Time: October 7, 2012, 7:30 pm

Thanks for this tip. Another option is to create your own button directed for the following url: https://plus.google.com/share?&hl=en&url=YOUR_URL_to_share this can be nice if you don’t want to use Javascript.