I'm using the WooCommerce plugin and I can't figure how to remove the meta price information. I'm trying to remove the price info from displaying when a product gets shared on Facebook and/or Twitter. The website does have Yoast SEO plugin also installed but I'm not seeing anyway to remove it. I have no price showed on the product page.
Does anyone know how to modify meta data information? I've found the meta customer information. Just not product.
UPDATE
Basically I want to remove this:
<!-- Misc. tags -->
<meta name="twitter:label1" content="Price"/>
<meta name="twitter:data1" content="50 USD"/>
<meta property="product:price:amount" content="50"/>
<meta property="product:price:currency" content="USD"/>
<meta property="product:availability" content="instock"/>
<!-- is_singular | is_product -->
You can only see it when you do a view source. The Price gets shown whenever you copy and paste the link in any social media platform.
LAST UPDATE It was the Open Graph Facebook plugin. View Kashif Rafique response below in the comments.
I'm using the WooCommerce plugin and I can't figure how to remove the meta price information. I'm trying to remove the price info from displaying when a product gets shared on Facebook and/or Twitter. The website does have Yoast SEO plugin also installed but I'm not seeing anyway to remove it. I have no price showed on the product page.
Does anyone know how to modify meta data information? I've found the meta customer information. Just not product.
UPDATE
Basically I want to remove this:
<!-- Misc. tags -->
<meta name="twitter:label1" content="Price"/>
<meta name="twitter:data1" content="50 USD"/>
<meta property="product:price:amount" content="50"/>
<meta property="product:price:currency" content="USD"/>
<meta property="product:availability" content="instock"/>
<!-- is_singular | is_product -->
You can only see it when you do a view source. The Price gets shown whenever you copy and paste the link in any social media platform.
LAST UPDATE It was the Open Graph Facebook plugin. View Kashif Rafique response below in the comments.
You can try the following filters available in Yoast WordPress SEO:
apply_filters( 'wpseo_twitter_metatag_key', 'name' );
Source: wpseo_twitter_metatag_key
apply_filters( 'wpseo_og_' . $og_property, $content );
Source: wpseo_og_' . $og_property
EDIT - Review after seeing the product URL
Yoast SEO is not generating the Twitter/FB meta tags. Open Graph for Facebook, Google+ and Twitter Card Tags plugin is responsible for rendering these meta tags.
Seems that plugin doesn't allow product level configuration for price. It offers few filters with the meta tags inserting function:
fb_og_disable
fb_og_enabled
fb_og_output
You would like to study the code and extend the plugin as per your need. A simple and easy solution is comment out or remove the responsible code from wonderm00ns-simple-facebook-open-graph-tags/public/class-webdados-fb-open-graph-public.php
file, but it is not a recommended and future-safe way.