hi,
Are there any option to add button that copy link of current page for sharing ?
thanks
adding copy link in social sharing
Hi @kimo ,
Unfortunately, we currently don't have an option that copies the link of the current page.
You can however use document.location.href
or window.location.href
to get the link of the current page.
button that copy link of current page for sharing
Could you perhaps elaborate on what kind of button you would like to have?
Do you want the button to copy the link into the clipboard?
Please let me know!
yes, i want the button to copy the link into the clipboard
Hi kimo ,
Thanks for elaborating the question further!
To make a button that copies the URL of the current page,
you'll have to use the "Javascript Function" action of Buttonizer, which is a premium function only.
Copy and paste this function into the "Javascript Function" action:
function buttonizerGetPageUrl() {
var dummy = document.createElement('input'),
text = window.location.href;
document.body.appendChild(dummy);
dummy.value = text;
dummy.select();
document.execCommand('copy');
document.body.removeChild(dummy);
};
buttonizerGetPageUrl();
This function will copy the link of the current page into your clipboard!
thanks alot