Hi,
Can’t seem to get my twitter button to display the quote (or anything at all) when I click on it. Any ideas why? Not getting any errors either which is leaving me a bit stumped.
Codepen below
Hi,
Can’t seem to get my twitter button to display the quote (or anything at all) when I click on it. Any ideas why? Not getting any errors either which is leaving me a bit stumped.
Codepen below
I’ve done the above, tweeting seems OK for some quotes, but seems to mess up some that are on multiple lines. Do I need to use the replace(function) to help amend this and also get rid of the
tags?
Thanks for your help
Only one line is needed to open message-display for twitter:
window.open("https://twitter.com/intent/tweet?hashtags=quote&text=" + string);
where string variable is your quote. Put this line in ‘click’ handler and that should be all. Also twitter has character limit.