Hello there,
I have Facebook and Twitter share buttons from my CMS. The Facebook link works, but the Twitter button is now. I didn’t build the site, and I’m not sure how to get it working again.
Here is a link to a live blog post. If you click the Tweet button, you will see the error.
https://www.spaceangels.com/post/space-investment-quarterly-q1-2019
My site’s read-only link is: https://preview.webflow.com/preview/space-angels?utm_source=space-angels&preview=a17cfd642f6c6ecc8445dcc97edc84d4
The custom code for the sharing bit currently says the following:
// adding share Facebook and Twitter linker
if(document.querySelector(‘.share-facebook’)) {
document.querySelector(‘.share-facebook’).href = ‘Redirecting...’ + window.location.href;
}
if(document.querySelector(‘.share-tweet’)) {
document.querySelector(‘.share-tweet’).href = ‘https://twitter.com/intent/tweet?text=’ + document.title + ‘&url=’ + window.location.href;
}
});
Thank you for your help!