Random Quote Machine-Twitter Button

Hi, I am having difficulty customizing the Twitter button so that it tweets out what I want it to tweet out. If not for the Twitter widget script, I feel like my code will work. How do I get around whatever the Twitter widget script does in order to modify data-text and the other attributes?

I didn’t mess with the widgets. I just did:

window.open("https://twitter.com/intent/tweet?text=" + text + ";hashtags=" + hashtags, "width=500,height=300");

Thanks, how do you get the twitter button graphic then, by just saving it as an image and using that? The twitter widget makes the twitter button graphic automatically.

Yeah, I just used font awesome:

    <button id = "tweetBTN"><i class="fa fa-twitter" aria-hidden="true"></i> Tweet!</button> 

Remember to include //maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css.

1 Like