I designed My own twitter button to better fit the graphical charter of my website. For this I used the Social Buttons for Boostrap.
The problem is that data-text doesent work anymore if I replace the class twitter-share-button
by my own class btn btn-social-icon btn-twitter btn-xs
.
How could I replace the twitter-share-button
by my button while keeping the functionalities like data-text?
This is the working code from twitter where I would like to replace the class:
<script src="//platform.twitter.com/widgets.js" type="text/javascript"></script>
<div>
<a href="https://twitter.com/share" class="twitter-share-button"
data-url="https://dev.twitter.com/pages/tweet_button"
data-via="your_screen_name"
data-text="Checking out this page about Tweet Buttons"
data-related="anywhere:The Javascript API"
data-count="vertical">Tweet</a>
</div>