@hbk747 We’re sorry to hear you are experiencing this issue on your site.
We checked on both the staging site and the main site, and for both we aren’t seeing a twitter:image
meta tag being output. We do an og:image
being output for both though, and this should be used by Twitter in the absence of twitter:image
.
However, for the staging site the og:image
appears to be showing an absolute URL for the image:
<meta property="og:image" content="http://wordpress-601622-1957785.cloudwaysapps.com/wp-content/uploads/2020/03/ParadigmShift-Logo-V2.png" />
Whereas the live site is using the following:
<meta property="og:image" content="//601622-1954785-raikfcquaxqncofqfm.stackpathdns.com/wp-content/uploads/2020/03/ParadigmShift-Logo-V2.png" />
This appears to be causing the Twitter card validator to not be able to read the image URL of og:image
.
Thread Starter
hbk747
(@hbk747)
@devnihil
Hello
That url is the cdn url…Hmmm.
what should I do?
How can I add the “twitter:image” meta tag u mentioned.
Should I remove the CDN?
Edit: Also if the og:image is using the cdn url, then why does facebook and the others work?
Thanks for your prompt reply
-
This reply was modified 2 years, 10 months ago by hbk747.
Hi @hbk747
Twitter should use the og:image
tag, but you’ll need to upload a separate image in the image field of the Twitter section of the social tab in the Yoast SEO meta box if you want it to output a twitter:image
tag.
We checked on 2 similar posts from your staging and live site https://wordpress-601622-1957785.cloudwaysapps.com/united-states-involvement-in-libya/ & https://www.paradigmshift.com.pk/united-states-involvement-in-libya/ and when running the URL of the live site of the Twitter Card Validator, it looks like it is picking up the image and showing the summary with large image card preview.
Upon checking the page source, the og:image
URL seems to be using the absolute URL now. Could you check if this issue has now been resolved and the social previews for Twitter are showing correctly as expected?
Thread Starter
hbk747
(@hbk747)
@mikes41720 Hello
I had to disconnect my cdn and that fixed it.
I am in talks with my webhost so we can resolve this issue (with cdn active)
thank you
Hi,
We’re glad to hear that the issue is resolved. We’ll be setting this forum thread to resolved. Please do feel free to reopen the topic if this particular issue still occurs for you, or open a new forum topic for a separate issue with the Yoast SEO plugin.
Have a good one!