Today I had to add a Pinterest Share button on our website, and run it through our AddThis account so we can track the analytics. Unfortunately, there are only two options for the Pinterest button via AddThis, neither of which look good along side our 32×32 style share buttons. So, I decided to hack it up =)
If you apply a fixed height to the a tag which holds the Pinterest button’s iframe, then set overflow to hidden, then apply a negative margin to the nested iframe, you can essentially get rid of that pesky count bubble that will not go away.
Resulting css is something like:
.addthis_toolbox > a.addthis_button_pinterest_pinit{ margin:8px 0px 4px; height:24px; overflow:hidden; vertical-align:baseline; } .addthis_toolbox > a.addthis_button_pinterest_pinit > iframe{ margin-top:-34px; } |
Great post!
You know how I can replace the button image with css? I’d like it to be a size 16×16, but not using the addthis_button_pinterest_share.
Thanks!
Not sure, I only looked into making the bubble button fit in a 32×32 space. I’m sure AddThis will be coming out with fully supported Pinterest buttons and icons soon enough. Good luck!