This topic has 12 replies, 2 voices, and was last updated 7 years, 9 months ago ago by Jack Richardson
Hello i hired someone to configure the yoast plugin and the meta stuff related to the plugin and some of the pages can’t be fetched via facebook correct. The developer found some code already integraded in the theme that conflicts with yoast. Can you please help us resolve the problem?
Please see attached on how to resolve the error and how to keep it resolved on new updates. It’s not only one page it’s many.
Thanks
Hello,
You need to edit the file wp-content/themes/legenda/framework/theme-functions.php and comment the lines 1335-1339:
echo '<meta property="og:title" content="' . get_the_title() . '"/>';
echo '<meta property="og:type" content="article"/>';
echo '<meta property="og:description" content="' . $description . '"/>';
echo '<meta property="og:url" content="' . get_permalink() . '"/>';
echo '<meta property="og:site_name" content="'. get_bloginfo('name') .'"/>';
Best regards,
Jack Richardson.
Can you do this and use it in the child theme so i don’t lose it on updates? I don’t know how to do it
Hello,
I’ve edited the file functions.php in your child theme.
Please check the site now and clear browser cache before.
Best regards,
Jack Richardson.
Wait, i asked you to remove those, not add them. I am confused
Hello,
I commented the needed code.
Clear browser cache and check your site.
Best regards,
Jack Richardson.
Most of the pages are fixed now expect the /collection page. Can you help with that?
Hello,
As I see the info is loading from Yoast SEO plugin settings http://prntscr.com/buaaqa.
Clear browser cache and check again.
Best regards,
Jack Richardson.
Yes the problem is the og:image is not getting picked up.
Hello,
You should clear facebook cache of that page via this tool:
https://developers.facebook.com/tools/debug/
Best regards,
Jack Richardson.
I have cleared it before i commented, it’s the only page that is not picked by facebook. It picks The rest are fine after you removed the tags from the theme. Can you please investigate and help further ? The /collection is the page set for woocommerce shop in the settings, although there are not other settings to configure. Can you help ?
Hello,
The same issue persists with default Woocommerce theme Storefront too. Activate it in Appearance > Themes and check yourself.
You need contact Yoast Seo plugin developers regarding your query.
Best regards,
Jack Richardson.
You must be logged in to reply to this topic.Log in/Sign up