# Looking for Help With Design Manager Social Sharing Module

**URL:** <https://community.hubspot.com/t/looking-for-help-with-design-manager-social-sharing-module/66016>\
**Category:** Email Marketing Tool\
**Tags:** marketing-email\
**Created:** [September 27, 2022, 10:54pm UTC](https://community.hubspot.com/t/looking-for-help-with-design-manager-social-sharing-module/66016 "2022-09-27T22:54:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KLack](https://avatars.discourse-cdn.com/v4/letter/k/da6949/32.png) [@KLack](https://community.hubspot.com/u/KLack)\
**Post date:** [September 27, 2022, 10:54pm UTC](https://community.hubspot.com/t/looking-for-help-with-design-manager-social-sharing-module/66016/1 "2022-09-27T22:54:26Z")

</div>

I am having issues incorporating a custom Social Sharing Module into my drag-and-drop email. I have the module roughly built and can drag it into my email template, but the icons are all left aligned, and I am having an impossible time getting them to be centered instead. Coding is not my forte, and I don’t see anywhere in the code that I could add the center align language. And the Style Fields - alignment option in the right-hand menu seems to do nothing.

The end goal is that we want our readers to be able to share the email content on social media.

Here’s the code that I have:

{% set size = “24px” %}  
{% set borderRadius = “3px” %}  
{% set linkStyle = “width:”~size~“;border-width:0px;border:0px;text-decoration:none;” %}  
{% set imgStyle = “height:”~size~“;width:”~size~“;border-radius:”~borderRadius~“;border-width:0px;border:0px” %}  
\<center\>\</center\>

{% macro render\_social\_icon(networkName) %}  
{% set network = module[networkName] %}  
{% if (networkName == “pinterest” and network.pinterest\_media and network.enabled) or (networkName != “pinterest” and network.enabled) %}  
{% if networkName == “pinterest” %}  
{% set pinterest\_media = module.pinterest.pinterest\_media.src %}  
{% endif %}  
{% set logo = networkName ~‘-color.png’ %}  
{% set urlOperator = “&” if “?” in page\_meta.canonical\_url else “?” %}  
{% if module.link %}  
{% set social\_link\_url = module.link ~ urlOperator ~ “utm\_medium=social&utm\_source=”|safe ~ networkName %}  
{% elif content.email\_type.blogRssChild %}  
{% set social\_link\_url = content.rss\_email\_url %}  
{% else %}  
{% set social\_link\_url = page\_meta.canonical\_url ~ urlOperator ~ “utm\_medium=social&utm\_source=”|safe ~ networkName %}  
{% endif %}

\<a href=“{{ network.custom\_link\_format }}” target=“\_blank” rel=“noopener” style=“{{ linkStyle }}” \>  
\<img src=“{{ module\_asset\_url(logo) }}” class=“hs-image-widget hs-image-social-sharing-24” style=“{{ imgStyle }}” width=“{{ size }}” hspace=“0” alt=‘{{ "Share on " ~ networkName }}’ /\>  
\</a\>  
{% endif %}  
{% endmacro %}

\<div class=“hs\_cos\_wrapper hs\_cos\_wrapper\_widget hs\_cos\_wrapper\_type\_social\_sharing” data-hs-cos-general-type=“widget” data-hs-cos-type=“social\_sharing”\>  
{{ render\_social\_icon(‘facebook’) }}  
{{ render\_social\_icon(‘linkedin’) }}  
{{ render\_social\_icon(‘twitter’) }}  
{{ render\_social\_icon(‘email’) }}

\</div\>

---

<div class="post-metadata">

**Author:** ![PamCotton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pamcotton/32/47916_2.png) [@PamCotton](https://community.hubspot.com/u/PamCotton)\
**Post date:** [September 28, 2022, 9:44pm UTC](https://community.hubspot.com/t/looking-for-help-with-design-manager-social-sharing-module/66016/2 "2022-09-28T21:44:44Z")

</div>

Hello @KLack, thank you for posting here!

I would like to add some of our top experts to this conversation @Anonymous [@Mike\_Eastwood](https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259) any recommendations for @KLack matter?

Thank you,

Pam

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [September 28, 2022, 10:06pm UTC](https://community.hubspot.com/t/looking-for-help-with-design-manager-social-sharing-module/66016/3 "2022-09-28T22:06:47Z")

</div>

Hi @KLack

Styling emails is challenging – lots of normal CSS works on some email clients some of the time.

I recommend creating an HTML Table, with an icon in each cell, then use inline CSS to center the icon.

Have fun

Mike
