Hi I have added the following link to my site
let picture;
let url;
let filename;
let link;
$w.onReady( function () {
link = wixLocation.url;
let item = $w(‘#dynamicDataset’).getCurrentItem();
picture = item.photo;
url = picture.split(“/”)[3];
filename = item.memoryEventDescription;
$w(“#twitterShare”).link = https:twitter.com/share?url=${link}&display=popup;
export function twitterShare_click(event) {
$w(“#twitterShare”).target = “_blank”;
}
and I get this error preview however when i test i published mode nothing happens at all
You might be interested in looking at @code-queen tutorial from a couple of years ago now about adding social links as you will be able to see how to use the Twitter share link in her example.
Thanks GOS this is where i took her code from. Unfortunately I cannot get anywhere with a response from any support channels associated with Code Queen’s network. I’m sure i’ve followed the tutorial word for word, hence do not get the SDK error