How to get Pinterest Rich Pins for your site
Pinterest Rich Pins show more information directly on a pin, like the price and availability of a product, the ingredients and cooking time of a recipe, and the headline and author of an article. In this article, we’ll show you how to get Pinterest Rich Pins for your site through the Yoast SEO plugin.
Table of contents
- Confirm your site with Pinterest
- How to get Rich Pins for your site
- Rich Pins for my homepage
- Additional information
Connect your site with Pinterest
Before you do anything else, please make sure you have connected your site with Pinterest. Log in to your WordPress dashboard, go to the “Yoast SEO” menu item, click “Settings”, and then “Site connections”. Here, you can add a verification code to confirm your site with Pinterest.
To get your verification code, click the link below the input field (“Claim your site over at Pinterest“) and log in to your Pinterest account. Next to “Websites”, click the grey “Claim” button.
You’ll see a pop-up screen with three options to claim your website. Below the heading “Add HTML tag” you’ll see a tag that looks like <meta name="..." content="...">
. Copy this code and paste it into the Pinterest field in the Yoast SEO Site connections settings. Don’t forget to click “Save changes”.
How to get Rich Pins for your site
To get Rich Pins for your site, Pinterest must authorize your site for rich pins. Validate and apply for rich pins by following these steps:
- Enable Open Graph in our plugin.
- Go to https://developers.pinterest.com/tools/url-debugger/
- Enter a URL to a page or post that contains rich pin data.
- Choose ‘HTML tags’ and click ‘Apply Now’.
The validator will run and you will see a validation confirmation and apply now link. Verify the domain name is correct. Choose HTML Tags and click “Apply Now”.
- You will see a confirmation that your application was processed.
Pinterest will contact you after reviewing your site.
Rich Pins for my homepage
On your homepage, Yoast will output the following OpenGraph tags: meta property="og:type" content="website"
. In order to make Pinterest validate Rich Pins for the homepage, you will need to develop the ability to output “article” only on the homepage and place it, most likely, in your theme’s functions.php
file.
To do this, you need to use the Change Yoast SEO OpenGraph Type code here: Develop Filters to Set Custom OpenGraph Tags. Please know that you may need to develop the ability.
Prior to any changes on your site, we recommend making a backup of your site or performing the work first on a staging site. If you need to create a staging site or need to backup your site, we suggest speaking to your host provider for more information. Please also know, that any changes made to your theme may be overridden in the next theme update.
It is highly suggested to use a child theme. If you are not sure how to use a child theme, please speak with your theme developer.
Additional information
- Pinterest no longer supports price variations or ranges unless you are using a feed partner like Shopify.
- WooCommerce SEO supports Price, Availability, and Currency as Pinterest Rich Pins, described in this guide.