WooCommerce really is one of the best shopping cart plugins available for WordPress. Unfortunately it lacks good SEO code styling for Pinterest sharing and twitter cards. Even the Yoast SEO plugin for WordPress does not help here. Yoast has an extra Plugin you can buy, but if you only want the Extra SEO for Pinterest en Twitter your search stops here.
You don’t need any technical knowledge for this script to work! You don’t need to change or add any code in the functions.php in WordPress. A lot of solutions are changing the functions.php file, but I created a solution for you without changing any code! You only need to install one plugin. You need to install “Code Snippets” in WordPress. This plugin is build by Shea Bunge.
Code Snippets is an easy, clean and simple way to add code snippets to your site. It removes the need to add custom snippets to your theme theme’s functions.php file.
A snippet is a small chunk of PHP code that you can use to extend the functionality of a WordPress-powered website; essentially a mini-plugin with less load on your site. Most snippet-hosting sites tell you to add snippet code to your active theme’s functions.php file, which can get rather long and messy after a while. Code Snippets changes that by providing a GUI interface for adding snippets and actually running them on your site just as if they were in your theme’s functions.php file.
So step one is install the “Code Snippets” (byShea Bunge) plugin in your WordPress site!
The “Code Snippets” plugin is a free plugin!
Better sharing on Pinterest
The following code snippet improves the OpenGraph enhancements in your WordPress site, even when you already use the standard Yoast SEO Plugin. After installing my snippet your products will be awesome to share on Pinterest and Twitter! Just look at the how your pinterest product will look like:
You just have to import my xml into the Code Snippets Plugin. After importing, save and activating this snippet the generator line will be gone.
Nog change of functions.php needed, no problem when you switching to another theme.