Image not being picked up in Twitter card
-
For some reason I haven’t been able to get any images to appear in Twitter cards. I’ve tried on several pages, but here’s one example:
On the Card Validator (https://cards-dev.twitter.com/validator) everything displays normally except that the image is some kind of default icon.
The two image options I have checked are:
- “Open Graph Image” custom field on the post
- First image from the post/page content
The image code that’s appearing in html view is this:
<img class="alignright size-medium wp-image-36706" src="https://www.wildmind.org/wp-content/uploads/2016/12/meditating-woman-325x338.jpg" alt="meditating woman" width="325" height="338" srcset="https://www.wildmind.org/wp-content/uploads/2016/12/meditating-woman-325x338.jpg 325w, https://www.wildmind.org/wp-content/uploads/2016/12/meditating-woman-162x168.jpg 162w, https://www.wildmind.org/wp-content/uploads/2016/12/meditating-woman-150x156.jpg 150w, https://www.wildmind.org/wp-content/uploads/2016/12/meditating-woman-300x312.jpg 300w, https://www.wildmind.org/wp-content/uploads/2016/12/meditating-woman-192x200.jpg 192w, https://www.wildmind.org/wp-content/uploads/2016/12/meditating-woman.jpg 428w" sizes="(max-width: 325px) 100vw, 325px" />
The og:image code points to the page rather than an image. I don’t know if that’s correct or not:
<meta property="og:image" content="https://www.wildmind.org/blogs/on-practice/why-your-new-years-meditation-resolutions-fail-and-how-to-make-them-stick"/>
Any thoughts?
- The topic ‘Image not being picked up in Twitter card’ is closed to new replies.