Grant1
(Grant)
May 24, 2019, 6:09pm
1
Hi there
Just a quick one,
Why can’t I find any way to create these cloned links to actually links. I have been searching the internet for days but nowhere can I find anyone who answers this question. The most I found is people suggesting to use a third party which means I cant customize for my site.
Any ideas?
mattvaru
(Matt Varughese)
May 24, 2019, 9:32pm
2
Hey Grant! Hope you’re well.
2 questions:
Can you share your read-only link?
I think I understand what you’re trying to achieve, but can you explain a little further about the desired outcome when clicking on that Instagram icon?
Thanks in advance!
1 Like
Grant1
(Grant)
May 25, 2019, 10:48am
3
Hi Thank you very much for the reply,
Read Only Link:
https://preview.webflow.com/preview/classicperspective?utm_source=classicperspective&preview=96793390751291f4a48c8605ddcb08c3
Okay so i understand with instagram there is no way to share, so i will have to change that to email. Sorry for the confussion. So I just need when someone reading the blog pushes the share buttons they are able to share to facebook, twitter, email.
many thanks
Grant
1 Like
mattvaru
(Matt Varughese)
May 25, 2019, 2:05pm
4
Thanks for clearing that up! Makes total sense.
Check this out and let me know if it resolves your issue. https://webflow.com/blog/customizing-your-social-sharing-buttons-with-webflow-cms
blog posts - For me this code works fine (By embed html)
** remember to declare og:image
, title
, description
(Read her )
Facebook
option 1
Change the img src to your icon path
<a title="share on facebook" class="social-icon facebook" href="javascript:fbshareCurrentPage()" target="_blank">
<img height="21" src="https:/facebook-icon.gif" alt="share on facebook button">
</a>
<script language="javascript">
function fbshareCurrentPage()
{window.open("https://www.facebook.com/sharer/sharer.php?u="+escape(window.location.href)+"&t="+document.title, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');return false; }
</script>
option 2
(Official button style) - copy paste the code from her:
Option 3:
<a class="w-inline-block social-share-btn fb" href="https://www.facebook.com/sharer/sharer.php?u=&t=" title="Share on Facebook" target="_blank" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(document.URL) + '&t=' + encodeURIComponent(document.URL)); return false;"></a>
For cms items -
inside encodeURIComponent
-
write the base url
(Your domain) +
collection url
& slug
:
Twitter
<a title="Share on Twitter" href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button" data-show-count="false">Tweet</a>
<script src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
twitter-share-button
class will give you this design/style:
Or remove this class and use any image/text you want inside the button.
Share by EMAIL
For all windows users - click will open Outlook = nightmare.
Anyway share in this case is “regular” email (Title/subject). Try this:
Hello, @Pedro .
For create a link, which will share the content (current page) it is easier to use embed code, because it will need “onclick” attribute, which it reserved by internal Webflow code (you can’t use it in links attributes)
So just create link-block, give it class, style it. Then add embed code widget and paste this snippet.
`<a class="w-inline-block add-your-class-here" href="mailto:?subject=&body=:%20" target="_blank" title="Email" onclick="window.open('mailto:?subject=' + enc…
Related:
Hello, @portentus !
Check this tutorial:
Hope it helps
Cheers,
Anna