Share blog option in webflow
I need to make this in webflow. By clicking this the blog post should share to multiple platforms like linkedin etc.
4 Replies
I would check out Finsweets social share for an easy solution. If you only want this one button you may need to nest the social icons in some kind of modal
Okay got it, and when I click on share post the modal should open!
Yes, that's what it does.
And if you need just a copy link button, I came up with this idea:
<script>
var $temp = $("<input>");
var $url = $(location).attr('href');
$('.clipboard').on('click', function() {
$("body").append($temp);
$temp.val($url).select();
document.execCommand("copy");
$temp.remove();
$(".basic-icon-spec-text.clipboard").text("Link copied");
})
</script>
Here is an example:
https://www.morragency.com/blog-posts/the-science-behind-storytelling-how-it-captivates-audiences-and-drives-engagement