COS-Pages-Editor

How do I add a Pinterest Pin It button to my blog post?

Last updated: December 16, 2016

Available For:

Marketing: Basic, Pro, Enterprise
Sales: N/A

If your blog is hosted with HubSpot, refer to the following instructions to add a Pinterest button to your blog:

  • From your HubSpot Marketing account, navigate to Content > Blog.
  • Click More Tools from the left side menu > click Manage blog template.
  • If you are using a standard Blog Content module, click Edit Post Template within this module:
    • Locate the following social sharing HubL token in the blog post HTML:
{% blog_social_sharing "blog_social_sharing" overrideable=False, label='Blog Social Sharing' %}
  • Paste in the following code for the Pinterest button, immediately following the social sharing token:
<a class="pinterest" href="//www.pinterest.com/pin/create/button/?url={{ content.absolute_url }}&media={{ content.featured_image }}" data-pin-do="buttonBookmark" ><img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png" /></a>
  • Click Publish Changes.