How to Add a Pinterest Widget to Your Website
In this article
To add a Pinterest widget to your website, you first need a Pinterest business account and the widget code from Pinterest's widget builder. Then paste the code into your site's HTML where you want the widget to appear. The exact steps vary slightly depending on whether you use a website builder (like WordPress, Wix, or Squarespace) or a custom-coded site. Below is a complete walkthrough, from creating the widget to troubleshooting common issues.
What You'll Need
- A Pinterest business account (a personal account can be converted to a business account for free).
- Access to your website's HTML or a widget-ready area (e.g., a custom HTML block in your CMS).
- The URL of the Pinterest board or profile you want to display.
- Basic ability to copy and paste code (no coding expertise required).
Step-by-Step
- Log in to Pinterest with your business account and go to the Widget Builder (visit help.pinterest.com and search for "widget builder" if you can't find it directly).
- Choose the widget type. Pinterest offers several widgets: Board, Profile, Pin, and Save button. For displaying a board, select "Board Widget." For a single pin, choose "Pin Widget." The Save button lets visitors save your content to their own boards.
- Enter the required details. For a Board widget, paste the board's URL (e.g., https://www.pinterest.com/username/board-name/). For a Profile widget, enter your profile URL. Adjust the size and layout options if available.
- Copy the generated code. Click the "Create" or "Get Code" button, then copy the HTML snippet that appears. It typically includes a
<script>tag and a placeholder element. - Paste the code into your website. The method depends on your platform:
- Custom HTML site: Open the HTML file for the page where you want the widget and paste the code inside the
<body>tag, ideally where you want it to appear. - WordPress: Use a Custom HTML block in the block editor (or a widget block in the legacy widget area). Paste the code and update the page.
- Wix: Add an "Embed HTML" element from the Add panel, then paste the code into the HTML settings box.
- Squarespace: Add a Code Block to your page and paste the snippet.
- Shopify: Edit the theme code or use an app that allows custom HTML; paste the code into the appropriate template file.
- Custom HTML site: Open the HTML file for the page where you want the widget and paste the code inside the
- Save and publish. After inserting the code, save your changes and publish the page. Visit the live page to confirm the widget appears and loads correctly.
- Test the widget. Click on a pin or board within the widget to ensure it links to Pinterest properly. Also check that the widget is responsive on mobile devices.
Common Mistakes
- Using the wrong URL format. Pinterest widget URLs must be the full URL of a board or profile, not a shortened link or a pin URL for a board widget. Double-check that the URL starts with https://www.pinterest.com/.
- Pasting code in the wrong place. Placing the widget code inside the
<head>section or outside the<body>can prevent it from rendering. Always paste it where you want the widget to display. - Forgetting to include the script tag. Some users copy only the
<a>or<div>part and omit the<script>tag that loads Pinterest's widget JavaScript. The widget won't work without it. - Not clearing cache. After adding the code, your browser or CMS may show an old version of the page. Clear your cache or check in an incognito window.
- Using a personal account for business features. Some widget options (like analytics) require a business account. Convert your account if needed.
Tips
- Place the widget in a visible area, such as a sidebar or below your content, to encourage engagement.
- Use the Save button widget on blog posts to let readers save images to Pinterest, driving traffic back to your site.
- Keep the widget size appropriate for your layout; overly large widgets can slow down your page.
- Regularly update the board or profile URL if you change your Pinterest username or board names.
- Test the widget on mobile devices; Pinterest widgets are generally responsive, but custom CSS on your site might interfere.
Troubleshooting
If the widget does not appear or work as expected, try these steps in order:
- Check the code for errors. Ensure you copied the entire snippet, including the
<script>tag. Missing angle brackets or quotation marks can break the widget. - Verify the URL. Make sure the board or profile URL is correct and publicly accessible. Private boards won't display.
- Clear your browser cache and reload the page. If you use a CMS, clear any caching plugins or server-side cache.
- Disable other scripts temporarily. Conflicts with other JavaScript (e.g., ad blockers, other widgets) can prevent loading. Test by disabling plugins one by one.
- Check for HTTPS issues. Pinterest widgets require a secure (HTTPS) connection. If your site is HTTP, the widget may not load.
- Review Pinterest's status. Occasionally, Pinterest's servers may be down. Check their status page or try again later.
- Reinstall the widget. Delete the code, regenerate a fresh widget from Pinterest, and paste it again.
If none of these work, consult your website platform's documentation on embedding external scripts, or contact Pinterest support for widget-specific issues.
Frequently Asked Questions
Do I need a business account to add a Pinterest widget?
No, you can create widgets with a personal account, but a business account gives you access to analytics and additional features. Converting is free.
Can I add multiple Pinterest widgets to one page?
Yes, you can paste multiple widget codes on the same page, but be mindful of page load speed and visual clutter.
Will the widget slow down my website?
Pinterest widgets load external JavaScript, which can add a small delay. Use them sparingly and consider lazy loading if performance is critical.
How do I change the size of the widget?
The widget builder may offer size options. If not, you can adjust the width via CSS on the container element, but avoid breaking the responsive layout.
Why is my widget showing a blank box?
This usually means the script didn't load or the URL is incorrect. Check for JavaScript errors in your browser's console and verify the URL.
Can I use a Pinterest widget on a mobile app?
No, widgets are for websites. For mobile apps, you'd need to use Pinterest's SDK or deep linking, which is a different process.