two OG Image tags appearing in source code

Posted in: Newspaper
Post count: 58

Hi, I cant get yoast to set a OG image tag/facebook image for my posts. On further inspection, my posts source code is showing TWO OG Image tags, where one is the featured image URL and the other is my custom yoast/Facebook image.

I have closed down every single plugin, running just the theme plugins and yoast, and still the ‘featured image’ OG image tag appears first in the source code. Facebook, twitter etc keeps on pulling the featured image for the post as a result as this is the first OG image tag it comes across when reading the source code.

The featured image and first OG image tag on the url is

<meta property=”og:image” content=”https://www.homeremedyhacks.com/wp-content/uploads/2017/12/house-centipede.jpg&#8221; />

The second facebook image tag which does not get pulled by facebook is:
<meta property=”og:image” content=”https://www.homeremedyhacks.com/wp-content/uploads/2017/12/FB-Home-remedies-for-centipedes.jpg&#8221;

The URL is https://www.homeremedyhacks.com/home-remedies-get-rid-of-centipedes/

Howver, all URLs have this problem

Thanks for you help

Post count: 20688

Hi,

Please try and comment these lines of code in the theme files
https://www.screencast.com/t/Vf0r8n7xHdDH
Then check the results.

Thanks

Post count: 58

thanks. that worked

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.