Meta description isn’t correct when sharing a product on facebook
-
Hi,
I’m using yoast SEO with woocommerce. But I’m facing an issue when sharing products on facebook. When I share a product on facebook, the post description showing HTML code. I found out that HTML is pulling from product short description. but I have added the meta descriptions for all products. I tried this below jQuery to code but it didn’t solve the issue. Also, deactivated all plugins but no luck. Any help will be truly appreciated.
Here is the js code I tried.
$('meta').each(function () { var meta = $(this); var property = meta.attr('property'); if(!property) return; if (exists[property]) meta.remove(); else exists[property] = meta; });
Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Meta description isn’t correct when sharing a product on facebook’ is closed to new replies.