# Share Widget on Blog

**URL:** <https://community.hubspot.com/t/share-widget-on-blog/94981>\
**Category:** CMS Development\
**Tags:** local-development\
**Created:** [November 28, 2023, 9:54pm UTC](https://community.hubspot.com/t/share-widget-on-blog/94981 "2023-11-28T21:54:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DFenton](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@DFenton](https://community.hubspot.com/u/DFenton)\
**Post date:** [November 28, 2023, 9:54pm UTC](https://community.hubspot.com/t/share-widget-on-blog/94981/1 "2023-11-28T21:54:44Z")

</div>

Hello,

We would like to add a widget with sharing options at the footer of each of our blog posts. How can I do that?

See example from HubSpot blog post below.

![DFenton_0-1701208705018.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/d/0da5147f154c79ba2c749ac91f163dff4dea6a46.png)

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [November 29, 2023, 4:20pm UTC](https://community.hubspot.com/t/share-widget-on-blog/94981/2 "2023-11-29T16:20:40Z")

</div>

Hi, @DFenton 👋 You can build a custom module in the [Design Manager](https://knowledge.hubspot.com/design-manager/create-and-edit-modules). If you are not comfortable using HTML, CSS, and JavaScript, you can reach out to a developer for assistance here — [HubSpot Marketplace](https://ecosystem.hubspot.com/marketplace/solutions?_ga=2.71056080.131985839.1701121512-361073146.1701121512).

[Design Manager doc for developers](https://developers.hubspot.com/docs/cms/developer-reference/design-manager)

If you build a custom module and get stuck at a specific point, please share your code here that is giving you issues, and we’ll see if our community members can assist you.

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [November 29, 2023, 8:49pm UTC](https://community.hubspot.com/t/share-widget-on-blog/94981/3 "2023-11-29T20:49:40Z")

</div>

Hi @DFenton,

if the default sharing module doesn’t meet your needs you can create your own by creating a new (global) custom module.

It’s up to you if you want to provide some features like icon select, color settings and such. To recreate the one you’ve provided via screenshot just add a text-field(not rich-text) in the right sidebar and use the following code:

```lia-code-sample
{% require_head %}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" integrity="sha512-Avb2QiuDEEvB4bZJYdft2mNjVShBftLdPG8FJ0V7irTLQ8Uo0qcPxh4Plq7G5tGm0rU+1SPhVotteLpBERwTkw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
{% end_require_head %}

{% require_css %}
.customSharing{}

.customSharing h3.sharingHeadline{
font-size:1.25rem;
}

.sharingIconsWrapper{
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-content: center;
justify-content: flex-start;
align-items: center;
gap:.75rem;
}

.sharingIconsWrapper a.sharingIcon{
text-decoration:none;
border-radius:3rem;
padding:.5rem;
font-size:1rem;
background:#ff0000; {# set the background color of the icons #}
cursor:pointer;
}

.sharingIconsWrapper a.sharingIcon i{
text-decoration:none;
color: #ffffff {# set the color of the icon #}
}

{% end_require_css %}

<div class="customSharing">
<h3 class="sharingHeadline">{{ module.headline }}</h3>
{# start sharing icons #}
<div class="sharingIconsWrapper">
<a href="https://twitter.com/home?status={{ content.absolute_url }}" target="_blank" class="sharingIcon twitter"><i class="fab fa-twitter"></i></a>

<a href="http://www.facebook.com/sharer.php?u={{ content.absolute_url }}" target="_blank" class="sharingIcon facebook"><i class="fab fa-facebook-f"></i></a>

<a href="http://www.linkedin.com/shareArticle?mini=true&url={{ content.absolute_url }}" target="_blank" class="sharingIcon linkedin"><i class="fab fa-linkedin-in"></i></a>

<a href="whatsapp://send?text={{ page_meta.html_title }}%0A{{ content.absolute_url }}" target="_blank" class="sharingIcon whatsapp"><i class="fab fa-whatsapp"></i></a>

<a href="mailto:?subject={{ page_meta.html_title }}&body={{ content.absolute_url }}" target="_blank" class="sharingIcon email"><i class="far fa-envelope"></i></a>
</div>
{# end sharing icons #}
</div>

```

this should give you a good starting point

best,

Anton
