Insert a Pinterest button to your store
- Step 1: Select ThemesStep 2: Press on Edit codeSummarize this post with AI
Want to know how to insert a Pinterest button to your Shopify store? In this guide, we’ll show you the simple steps to easily add a Pinterest button, helping customers share your products and drive more traffic to your store.
To insert a Pinterest button to your store
- Step 1: Select Themes
- Step 2: Press on Edit code
- Step 3: Select the Add a new snippet link
- Step 4: Create the Pinterest snippet
- Step 5: Paste the code
- Step 6: Save
Step 1: Select Themes
Sign in your Shopify account and go to the admin page. Click on
Online Storeand selectThemes.Step 2: Press on Edit code
All the themes you have will appear. Make sure to select one theme. Then, tap on the
Actionsbutton and press onEdit code.Step 3: Select the Add a new snippet link
Look for the
Snippetsdirectory. Afterward, there are some files showing. Select theAdd a new snippetlink.Step 4: Create the Pinterest snippet
A new dialog will be displayed. In this step, you will create the Pinterest snippet by entering
pin-buttoninto the textbox. Then, tap onCreate snippet.Step 5: Paste the code
Copy the following code. Then, paste it the code editor.
<a href="//pinterest.com/pin/create/button/?url={{ shop.url }}{{ product.url }}&media=http:{{ product | img_url: '1024x1024' | split: '?' | first }}&description={{ product.title | strip_html | truncate: 200, '' | url_param_escape }}{% for tag in product.tags limit: 3 %}{{ tag | replace: ' ', '-' | prepend: ' #' | url_param_escape }}{% endfor %}" data-pin-do="buttonPin" data-pin-config="none"> <img src="//assets.pinterest.com/images/pidgets/pin_it_button.png" /> </a> <script async src="//assets.pinterest.com/js/pinit.js"></script>Step 6: Save
After all, you just need to click
Saveto finish.Summary
You have just created a Pinterest snippet on your own as following the transparent instruction above. This post with the hope to bring you beneficial things to insert a Pinterest button to your store in a manual and effective way. It is also illustrated by images. Hope that you will feel interested in reading tutorials like this.
Sam Nguyen is the CEO and founder of Avada Commerce, an e-commerce solution provider headquartered in Vietnam. He is an expert on the Shopify e-commerce platform for online stores and retail point-of-sale systems. Sam loves talking about e-commerce and he aims to help over a million online businesses grow and thrive.Related Post






