# ブログ記事にPinterestの\[Pin It (ピン)\]ボタンを追加する方法

**URL:** <https://community.hubspot.com/t/pinterest-pin-it/41816>\
**Category:** Tips, Tricks & Best Practices\
**Tags:** professional\
**Created:** [August 4, 2021, 6:40pm UTC](https://community.hubspot.com/t/pinterest-pin-it/41816 "2021-08-04T18:40:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vrneuman](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/vrneuman/32/5740_2.png) [@vrneuman](https://community.hubspot.com/u/vrneuman)\
**Post date:** [August 4, 2021, 6:40pm UTC](https://community.hubspot.com/t/pinterest-pin-it/41816/1 "2021-08-04T18:40:49Z")

</div>

以下のコードをHubSpotのブログ記事テンプレートに追加して、各ブログ記事にPinterestボタンを追加します。

- HubSpotアカウントにて、［マーケティング］ \> ［ウェブサイト］ \> ［ブログ］の順に進みます。
- 左のサイドバーメニューで、**[その他のツール]** ドロップダウンメニューをクリックして **[記事テンプレートを管理]** を選択します。

 ![ブログ.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/9/9665530b6f6d063c72a2e2b1449b4a3f0d95a5a7.png)

- ブログ記事の HTML で次のソーシャル共有 HubL トークンを見つけます。

`{% blog_social_sharing "blog_social_sharing" overrideable=False, label='Blog Social Sharing' %}`

- Pinterest ボタンの次のコードを、ソーシャル共有トークンの直後に **貼りつけます** 。

`<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>`

- **[変更を公開]** をクリックします。

＊このコンテンツは[Add a Pinterest ‘Pin It’ button to your blog post](https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Add-a-Pinterest-Pin-It-button-to-your-blog-post/m-p/472729)を翻訳したものです。
