I’m trying to create a button to share my blog posts on facebook, but it doesn’t recognize the page link. I’m new to codes, could someone point me to the error?
<script type="text/javascript">
document.addEventListener("DOMContentLoaded",function() {
document.getElementById("facebook-share-btt").href = "https ://www. facebook .com/sharer/sharer.php?u=" + encodeURIComponent (windw.location.href);
}, false);
</script
amandam
February 22, 2022, 7:20pm
2
Hello. Adding social sharing options to blog posts does not require code. Please see this post from the Wix Blog forum.
Hello
Thanks, buy my intention is to make floating buttons on the page
@vihbuenoz Checkout this tutorial: https://www.youtube.com/watch?v=cb31PIBP5LQ
Use pin to make share buttons floating
@workiapps It worked. Thanks!
@workiapps Do you have a video explaining how to make floating fixed on mobile?
@vihbuenoz It’s not possible on Mobile. But you can do it with Velo and Custom element.