<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Whatsapp social media icons? in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Whatsapp-social-media-icon/m-p/471114#M24321</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/55480"&gt;@jonchim&lt;/a&gt; ever do anything like this &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Aug 2021 20:14:47 GMT</pubDate>
    <dc:creator>dennisedson</dc:creator>
    <dc:date>2021-08-02T20:14:47Z</dc:date>
    <item>
      <title>Whatsapp social media icon?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Whatsapp-social-media-icon/m-p/470858#M24316</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have duplicated the social_sharing module to customize the social sharing icons.&lt;/P&gt;&lt;P&gt;By default, we have Facebook, Twitter, Pinterest, LinkedIn, Email icons.&lt;/P&gt;&lt;P&gt;I was wondering if it was possible to add Whatsapp as well (at the end of the social_sharing file here)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% 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;" %}

{% 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 = "&amp;amp;" if "?" in page_meta.canonical_url else "&amp;amp;" %}
{% if module.link %}
{% set social_link_url = module.link ~ urlOperator ~ "utm_medium=social&amp;amp;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&amp;amp;utm_source="|safe ~ networkName %}
{% endif %}

&amp;lt;a href="{{ network.custom_link_format }}" target="_blank" rel="noopener" style="{{ linkStyle }}" &amp;gt;
&amp;lt;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 }}' /&amp;gt;
&amp;lt;/a&amp;gt;
{% endif %}
{% endmacro %}

&amp;lt;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"&amp;gt;
{{ render_social_icon('facebook') }}
{{ render_social_icon('linkedin') }}
{{ render_social_icon('share_twitter') }}
{{ render_social_icon('pinterest') }}
{{ render_social_icon('email') }}
&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 14:42:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Whatsapp-social-media-icon/m-p/470858#M24316</guid>
      <dc:creator>lait</dc:creator>
      <dc:date>2021-08-03T14:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Whatsapp social media icons?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Whatsapp-social-media-icon/m-p/471114#M24321</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/55480"&gt;@jonchim&lt;/a&gt; ever do anything like this &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 20:14:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Whatsapp-social-media-icon/m-p/471114#M24321</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-08-02T20:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Whatsapp social media icons?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Whatsapp-social-media-icon/m-p/471620#M24336</link>
      <description>&lt;P&gt;haha&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;&amp;nbsp;I&amp;nbsp;typically use a third party that has every possible social media platform option&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;But this is an easy addition&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/189936"&gt;@lait&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You can add&amp;nbsp; {{ render_social_icon('whatsapp') }} to the last div like this, and then in the module clone the facebook (field group) and rename it to whatsapp. Finally be sure to upload the icon and follow the same format and size of the other icons and you should be able to use whatsapp. Let me know if that works out!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;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"&amp;gt;
{{ render_social_icon('facebook') }}
{{ render_social_icon('linkedin') }}
{{ render_social_icon('share_twitter') }}
{{ render_social_icon('pinterest') }}
{{ render_social_icon('email') }}
&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2021-08-03 at 10.47.08 AM.png" style="width: 412px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/47477i0463A53EE1844A6B/image-dimensions/412x540?v=v2" width="412" height="540" role="button" title="Screen Shot 2021-08-03 at 10.47.08 AM.png" alt="Screen Shot 2021-08-03 at 10.47.08 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2021-08-03 at 10.47.34 AM.png" style="width: 426px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/47478i430092B19023E24B/image-dimensions/426x476?v=v2" width="426" height="476" role="button" title="Screen Shot 2021-08-03 at 10.47.34 AM.png" alt="Screen Shot 2021-08-03 at 10.47.34 AM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2021-08-03 at 10.48.44 AM.png" style="width: 461px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/47479i79F37072FC3FA793/image-dimensions/461x569?v=v2" width="461" height="569" role="button" title="Screen Shot 2021-08-03 at 10.48.44 AM.png" alt="Screen Shot 2021-08-03 at 10.48.44 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 14:50:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Whatsapp-social-media-icon/m-p/471620#M24336</guid>
      <dc:creator>jonchim</dc:creator>
      <dc:date>2021-08-03T14:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Whatsapp social media icons?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Whatsapp-social-media-icon/m-p/471793#M24341</link>
      <description>&lt;P&gt;Thanks you &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/55480"&gt;@jonchim&lt;/a&gt;! But one last question if you don't mind. Do you know what the sharing link would be in the case of whatsapp by any chance? Because as I duplicated it from the Facebook field, I do have it here but it opens as a Facebook sharing window &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;BR /&gt;Thanks a lot for the help&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-08-03 at 1.44.03 PM.png" style="width: 736px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/47490i3DD7847F1FE80A44/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-08-03 at 1.44.03 PM.png" alt="Screen Shot 2021-08-03 at 1.44.03 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 19:16:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Whatsapp-social-media-icon/m-p/471793#M24341</guid>
      <dc:creator>lait</dc:creator>
      <dc:date>2021-08-03T19:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Whatsapp social media icon?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Whatsapp-social-media-icon/m-p/472212#M24352</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/189936"&gt;@lait&lt;/a&gt;&amp;nbsp;, I had to use it once, and found the documentation &lt;A href="https://faq.whatsapp.com/general/chats/how-to-use-click-to-chat" target="_blank" rel="noopener"&gt;right here in this link.&lt;/A&gt;&lt;BR /&gt;Basically you will end up with the below link:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;a href="https://wa.me/?text=the text to share" target="_blank"&amp;gt;Share via Whatsapp&amp;lt;/a&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So for your needs in the hubspot editor you will have to modify your link to something like below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;https://wa.me/?text={{ social_link_url }}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Let me know if that works okay for you!&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;If my answer was helpful, please mark it as a solution.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 08:05:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Whatsapp-social-media-icon/m-p/472212#M24352</guid>
      <dc:creator>miljkovicmisa</dc:creator>
      <dc:date>2021-08-04T08:05:15Z</dc:date>
    </item>
  </channel>
</rss>

