<?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: Adding custom social share buttons to a blog post in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Adding-custom-social-share-buttons-to-a-blog-post/m-p/198918#M7073</link>
    <description>&lt;P&gt;Solution for Twitter social sharing:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;Your anchor tag should look like this&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a class="twitter" id="tweetQuote" href="#"&amp;gt;Share on Twitter&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This script will need to run within the same module / template&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;$( document ).ready(function() {&lt;BR /&gt;var url = window.location.href;&lt;BR /&gt;var link = "&lt;A href="https://twitter.com/intent/tweet?text=" target="_blank"&gt;https://twitter.com/intent/tweet?text=&lt;/A&gt;" + url;&lt;BR /&gt;document.getElementById('tweetQuote').href = link;&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps someone!&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jul 2018 05:29:54 GMT</pubDate>
    <dc:creator>gloreal</dc:creator>
    <dc:date>2018-07-25T05:29:54Z</dc:date>
    <item>
      <title>Adding custom social share buttons to a blog post</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-custom-social-share-buttons-to-a-blog-post/m-p/183285#M5312</link>
      <description>&lt;P&gt;I'd like to add social share buttons to our news and project pages for Linkedin, Facebook and Twitter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I add the custom URL to the design page the social share buttons appear but don't pull the arcile post details to share.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm guessing the social link url isn't pulling in the news feed detail...any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;!--Linkedin--&amp;gt; &amp;lt;a href="&lt;A href="http://www.linkedin.com/shareArticle?mini=true&amp;amp;url=" target="_blank"&gt;http://www.linkedin.com/shareArticle?mini=true&amp;amp;url=&lt;/A&gt;&lt;FONT color="#FF0000"&gt;{{ social_link_url }}&lt;/FONT&gt;"&amp;gt;&amp;lt;img src="&lt;A href="https://www.maplesunscreening.co.uk/hubfs/Campaign%20and%20Maple%20Marketing%20Projects/Nurture%20emails/Nurture%20email%20template/icon-linkedin.png" target="_blank"&gt;https://www.maplesunscreening.co.uk/hubfs/Campaign%20and%20Maple%20Marketing%20Projects/Nurture%20emails/Nurture%20email%20template/icon-linkedin.png&lt;/A&gt;" alt="Share article on Linkedin" style="max-width: 50px" width=“50px”&amp;gt;&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.maplesunscreening.co.uk/news-and-insights/vpoxfordsciencepark" target="_blank"&gt;http://www.maplesunscreening.co.uk/news-and-insights/vpoxfordsciencepark&lt;/A&gt;&lt;/P&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 13:38:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-custom-social-share-buttons-to-a-blog-post/m-p/183285#M5312</guid>
      <dc:creator>davidcarroll75</dc:creator>
      <dc:date>2018-03-27T13:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding custom social share buttons to a blog post</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-custom-social-share-buttons-to-a-blog-post/m-p/184551#M5455</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/50998"&gt;@davidcarroll75&lt;/a&gt;&amp;nbsp;- welcome to the Community!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you confirm how this script was generated?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wold reccommend reviewing this knowledge article: &lt;A href="https://knowledge.hubspot.com/articles/kcs_article/cos-blog/how-to-add-individual-social-media-sharing-buttons-to-a-hubspot-page" target="_self"&gt;How do I add individual social media sharing buttons to a HubSpot page?&lt;/A&gt;&amp;nbsp;which includes information on how to generate the correct embed codes for Twitter, Linkedin, Facebook and Pinterest.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Let me know how you get on with these instructions and if you still hit a roadblock!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 08:36:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-custom-social-share-buttons-to-a-blog-post/m-p/184551#M5455</guid>
      <dc:creator>roisinkirby</dc:creator>
      <dc:date>2018-04-05T08:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding custom social share buttons to a blog post</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-custom-social-share-buttons-to-a-blog-post/m-p/184572#M5457</link>
      <description>&lt;P&gt;Hi&amp;nbsp;roisinkirby,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've managed to do it for Linkedin using this code by brosing through recommendations on blog feeds. However, can't seem to find the same information for Twitter and Facebook.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The links you sent don't allow for a) customer social media icon and b) the url pulled through is from a blog feed so needs an absolute link.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;!--Linkedin--&amp;gt; &amp;lt;a href="&lt;A href="http://www.linkedin.com/shareArticle?mini=true&amp;amp;url=" target="_blank"&gt;http://www.linkedin.com/shareArticle?mini=true&amp;amp;url=&lt;/A&gt;{{ content.absolute_url }}"&amp;gt;&amp;lt;img src="&lt;A href="https://www.maplesunscreening.co.uk/hubfs/Campaign%20and%20Maple%20Marketing%20Projects/Nurture%20emails/Nurture%20email%20template/icon-linkedin.png" target="_blank"&gt;https://www.maplesunscreening.co.uk/hubfs/Campaign%20and%20Maple%20Marketing%20Projects/Nurture%20emails/Nurture%20email%20template/icon-linkedin.png&lt;/A&gt;" alt="Share article on Linkedin" style="max-width: 50px" width=“50px”&amp;gt;&amp;lt;/a&amp;gt;&lt;/P&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 09:24:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-custom-social-share-buttons-to-a-blog-post/m-p/184572#M5457</guid>
      <dc:creator>davidcarroll75</dc:creator>
      <dc:date>2018-04-05T09:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding custom social share buttons to a blog post</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-custom-social-share-buttons-to-a-blog-post/m-p/198918#M7073</link>
      <description>&lt;P&gt;Solution for Twitter social sharing:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;Your anchor tag should look like this&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a class="twitter" id="tweetQuote" href="#"&amp;gt;Share on Twitter&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This script will need to run within the same module / template&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;$( document ).ready(function() {&lt;BR /&gt;var url = window.location.href;&lt;BR /&gt;var link = "&lt;A href="https://twitter.com/intent/tweet?text=" target="_blank"&gt;https://twitter.com/intent/tweet?text=&lt;/A&gt;" + url;&lt;BR /&gt;document.getElementById('tweetQuote').href = link;&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps someone!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 05:29:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-custom-social-share-buttons-to-a-blog-post/m-p/198918#M7073</guid>
      <dc:creator>gloreal</dc:creator>
      <dc:date>2018-07-25T05:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Adding custom social share buttons to a blog post</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-custom-social-share-buttons-to-a-blog-post/m-p/198919#M7074</link>
      <description>&lt;P&gt;Solution for Facebook social sharing:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;Your anchor tag should look like this&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a class="facebook" id="fbQuote" href="#" target="_blank"&amp;gt;Share on Facebook&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This script will need to run within the same module / template&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;$( document ).ready(function() {&lt;BR /&gt;var fbUrl = window.location.href;&lt;BR /&gt;var fbLink = "&lt;A href="https://www.facebook.com/sharer/sharer.php?u=" target="_blank"&gt;https://www.facebook.com/sharer/sharer.php?u=&lt;/A&gt;" + fbUrl;&lt;BR /&gt;document.getElementById('fbQuote').href = fbLink;&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps someone!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 05:53:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-custom-social-share-buttons-to-a-blog-post/m-p/198919#M7074</guid>
      <dc:creator>gloreal</dc:creator>
      <dc:date>2018-07-25T05:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Adding custom social share buttons to a blog post</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-custom-social-share-buttons-to-a-blog-post/m-p/313548#M15011</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66067"&gt;@gloreal&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;This did help some one &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Couple questions though: What's the advantage of using a script like this over&amp;nbsp;content.absolute_url as OP suggested? I tried both your and OP's suggestions and both seemed to have the same effect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, where would you put the &amp;amp;utm codes when using a script like this?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 12:48:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-custom-social-share-buttons-to-a-blog-post/m-p/313548#M15011</guid>
      <dc:creator>DanFromCF</dc:creator>
      <dc:date>2020-01-22T12:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Adding custom social share buttons to a blog post</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-custom-social-share-buttons-to-a-blog-post/m-p/313912#M15024</link>
      <description>&lt;P&gt;I'm just posting this here for reference. It may not solve more advanced problems, but this is how I typically create custom share icons:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{% widget_block social_sharing "my_social_sharing" label='Social Sharing', use_page_url=True, overrideable=True  %}
    {% widget_attribute "pinterest" is_json=True %}&lt;BR /&gt;        {"custom_link_format": "", "pinterest_media": "http://cdn1.hubspot.com/hub/158015/305390_10100548508246879_837195_59275782_6882128_n.jpg", "enabled": true, "network": "pinterest", "img_src": "https://static.hubspot.com/final/img/common/icons/social/pinterest-24x24.png"}&lt;BR /&gt;    {% end_widget_attribute %}
    {% widget_attribute "twitter" is_json=True %}&lt;BR /&gt;        {"custom_link_format": "", "enabled": true, "network": "twitter", "img_src": "https://static.hubspot.com/final/img/common/icons/social/twitter-24x24.png"}&lt;BR /&gt;    {% end_widget_attribute %}
    {% widget_attribute "google_plus" is_json=True %}&lt;BR /&gt;        {"custom_link_format": "", "enabled": true, "network": "google_plus", "img_src": "https://static.hubspot.com/final/img/common/icons/social/googleplus-24x24.png"}&lt;BR /&gt;    {% end_widget_attribute %}
    {% widget_attribute "linkedin" is_json=True %}&lt;BR /&gt;        {"custom_link_format": "", "enabled": true, "network": "linkedin", "img_src": "https://static.hubspot.com/final/img/common/icons/social/linkedin-24x24.png"}&lt;BR /&gt;    {% end_widget_attribute %}
    {% widget_attribute "facebook" is_json=True %}&lt;BR /&gt;        {"custom_link_format": "", "enabled": true, "network": "facebook", "img_src": "https://static.hubspot.com/final/img/common/icons/social/facebook-24x24.png"}&lt;BR /&gt;    {% end_widget_attribute %}
    {% widget_attribute "email" is_json=True %}&lt;BR /&gt;        {"custom_link_format": "", "enabled": true, "network": "email", "img_src": "https://static.hubspot.com/final/img/common/icons/social/email-24x24.png"}&lt;BR /&gt;    {% end_widget_attribute %}&lt;BR /&gt;{% end_widget_block %}&lt;/PRE&gt;
&lt;P&gt;Just swap out the image file reference for the icons you want to use.&amp;nbsp; Here's an example of this code in use (floating share bar at stuck to browser bottom): &lt;A href="https://blog.avinger.com/blog/diabetes-the-problem-of-plaque-and-peripheral-artery-disease" target="_blank"&gt;https://blog.avinger.com/blog/diabetes-the-problem-of-plaque-and-peripheral-artery-disease&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 08:09:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-custom-social-share-buttons-to-a-blog-post/m-p/313912#M15024</guid>
      <dc:creator>Jsum</dc:creator>
      <dc:date>2020-01-23T08:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding custom social share buttons to a blog post</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-custom-social-share-buttons-to-a-blog-post/m-p/429698#M22604</link>
      <description>&lt;P&gt;Hi there, I implemented this and it worked great. But I'm curious... I didn't want to include Pinterest so I deleted this code:&lt;/P&gt;&lt;PRE&gt; {% widget_attribute "pinterest" is_json=True %}&lt;BR /&gt;        {"custom_link_format": "", "pinterest_media": "http://cdn1.hubspot.com/hub/158015/305390_10100548508246879_837195_59275782_6882128_n.jpg", "enabled": true, "network": "pinterest", "img_src": "https://static.hubspot.com/final/img/common/icons/social/pinterest-24x24.png"}&lt;BR /&gt;    {% end_widget_attribute %}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it still shows up and the Google Plus icon does not show. Is there a setting that I'm missing?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 01:33:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-custom-social-share-buttons-to-a-blog-post/m-p/429698#M22604</guid>
      <dc:creator>sarahillman</dc:creator>
      <dc:date>2021-04-21T01:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Adding custom social share buttons to a blog post</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-custom-social-share-buttons-to-a-blog-post/m-p/623380#M28498</link>
      <description>&lt;P&gt;I'm having the same issue. I want to remove the Pinterest and Email links, but they still show even when I delete that part of the code snippet. Did you find a solution? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;UPDATE: I followed the steps on this page and everything worked out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://knowledge.hubspot.com/design-manager/use-custom-social-icons-on-hubspot-pages-or-templates" target="_blank"&gt;Use custom social icons on HubSpot pages or templates&lt;/A&gt;&lt;BR /&gt;Thanks to&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/4"&gt;@roisinkirby&lt;/a&gt;&amp;nbsp;for sharing that link in one of the other replies here.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 02:17:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-custom-social-share-buttons-to-a-blog-post/m-p/623380#M28498</guid>
      <dc:creator>emills</dc:creator>
      <dc:date>2022-04-28T02:17:03Z</dc:date>
    </item>
  </channel>
</rss>

