知識庫

將Pinterest「固定」按鈕新增至您的網誌文章

作者:HubSpot Support | Nov 21, 2022 11:56:09 AM
一個 dd以下代碼到你的HubSpot網誌文章模板,為每篇文章新增一個Pinterest按鈕。
  • 在左側邊欄選單中,按一下[更多工具]下拉式選單,然後選擇[管理網誌範本]。

  • 在「網誌內容」模組中,按一下編輯文章範本。
  • 在博客文章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 >
  • 按一下發佈變更。