Theme adding Featured Image for OG:IMAGE instead Yoast

Posted in: Newspaper
Post count: 104

Hi guys – we’ve come across a unique scenario. Mostly we just let the theme and Yoast play nicely for sharing and it works ok.

However we are using Yoasts ability to over-ride specific social settings for a small number of posts. However as the theme is automatically adding the featured image as the first OG:IMAGE tag in the head it’s causing FB to get confused!).

Let me try to explain.

On this post (as an example): https://www.deeperblue.com/glossary-acroynms-freediving/

We have the following image as our featured image: http://take.ms/Z5K9l

However we have set a slightly different image for our social share details in the Yoast options on the page: http://take.ms/7zLDs

When we look at the source of the page we see the featured image as the first OG:IMAGE and the yoast info further down: http://take.ms/A8YK7

When looking at the Facebook debugger it shows the preview from the first OG:IMAGE: https://developers.facebook.com/tools/debug/sharing/?q=https%3A%2F%2Fwww.deeperblue.com%2Fglossary-acroynms-freediving%2F

How do we tackle this? Shouldn’t the theme defer to how Yoast wants to handle the open graph tags?

Thanks,

Stephan

Post count: 20688

Hi,

That has been on our list for quite some time now for investigation and modification if needed, indeed is originating from the theme here
https://www.screencast.com/t/NxLhbDVvy8g
I will make some inquiries about this and we will try to resolve the issue for the next theme update. I am sorry for this inconvenience.

Thanks

Post count: 104

Thanks Simion – appreciate you looking into it.

I know I’ve made this suggestion before but a public roadmap showing tickets/features being worked on and what releases they are targeting would help tremendously.

Thanks,

Stephan

Post count: 19

Any update on this item? All my tag pages are pulling the incorrect thumbnail when shared to facebook

Post count: 20688

@ajayrijh I believe there were no modifications in this matter. However the code that was referred above is conditioned to work only on posts, it will not affect tag pages.

Are you setting an image within the Yoast settings for the tag?
https://www.screencast.com/t/8aI1L1FKNSt
That would be the only og image presetn in the tag page source.

Post count: 7

Can you please fix this in the next update? You’ve already pointed out the few lines of code that need to be removed to fix this: https://www.screencast.com/t/NxLhbDVvy8g

A theme shouldn’t be adding og:image tags. That’s what Yoast SEO or Jetpack are for, two of the most popular WordPress plugins.

Post count: 104

Agreed – this issue I reported 6 months ago with several releases since. Please fix this.

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