+ 1

How to make a Twitter share button?

I've already googled it and found many options but none for what I want do exactly. I basically want to make it possible for people to share a specific paragraph of my website on twitter using bootstrap. I got to this point: <a href="https://twitter.com/share" class="btn btn-social btn-twitter"> <i class="fa fa-twitter"></i> Share on Twitter</i> </a> But i guess I'm missing something... does anyone have any ideia?

2nd May 2018, 1:25 PM
Natalya
Natalya - avatar
3 Answers
0
Found this later on and turns out it is the perfect solution : https://gist.github.com/McKinneyDigital/2884508#file-share-twitter-js It's done with JavaScript. This is how I've done it: https://code.sololearn.com/WRpDH7gpm1W5/#js
4th May 2018, 12:41 AM
Natalya
Natalya - avatar
+ 3
https://twitter.com/intent/tweet?url=http://your_url
2nd May 2018, 2:13 PM
Toni Isotalo
Toni Isotalo - avatar
0
super!! thank you so much! Toni Isotalo
2nd May 2018, 4:07 PM
Natalya
Natalya - avatar