Duplicate OG:IMAGE in Head

Posted in: Newspaper
Post count: 104

Hi guys – i’m seeing a duplicate og:image tag in the head of all pages. I use Yoast Premium for SEO so would expect all og data to come from that.

Any ideas?

Post count: 44

Stephan,

I was experiencing the same thing. Newpaper theme automatically adds an og:image tag but for some reason facebook never recognized it(for me). I’m assuming removing it from the theme would fix the issue but I can’t seem to find it.

Post count: 9544

I think it used to be in the header.php file ….

Post count: 44

I found it deep within the files.

newspaper > included > wp_booster > td_wp-booster_functions.php

Post count: 44

I’m not great with php/html but I found coding out the echo line broke the display of the site. However, I just changed the og: to og2 and everything is working fine.

Post count: 7909

Hi,

You can remove the code from td_wp_booster_functions.phphttp://screencast.com/t/JrPOdsYA
It is added for videos when they don’t have thumbs.

Thanks!

Post count: 28

This really helped, thanks.

FYI, the default setting throws an error on FB’s Debugger. They require the full path to the image and the code above only provides a relative path.

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