Skip to content

Instantly share code, notes, and snippets.

@softiconic
Last active December 2, 2023 18:46
Show Gist options
  • Save softiconic/11fb93d623059c0d9b8feb8ccfabe13f to your computer and use it in GitHub Desktop.
Save softiconic/11fb93d623059c0d9b8feb8ccfabe13f to your computer and use it in GitHub Desktop.
Create a custom share link with specified title and text message.
<a title="Share on Facebook" target="_blank" rel="noopener noreferrer"
href="https://www.facebook.com/sharer/sharer.php?u=url-here"> Facebook </a>
<a title="Share on Twitter" target="_blank" rel="noopener noreferrer"
href="https://twitter.com/intent/tweet?text=text here"> Twitter </a>
<a title="Share on LinkedIn" target="_blank" rel="noopener noreferrer"
href="https://www.linkedin.com/shareArticle?mini=true&amp;url=#/&amp;title=Title&amp;summary=
Test here&amp;source=LinkedIn">LinkedIn </a>
<a title="Share on WhatsApp" target="_blank" rel="noopener noreferrer"
href="https://api.whatsapp.com/send?text=Text Here">WhatsApp </a>
<a title="Share via mail" target="_blank" rel="noopener noreferrer"
href="mailto:?subject=Subject Here&amp;body=Test Here">Mail </a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment