Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Post Thumbnails Not Appearing on Social Media

Solved by hughbris View solution

Started by Ryan W 8 years ago · 2 replies · 1378 views
8 years ago

I'm using the Clean Blog template and am having trouble getting the post header showing up as a post thumbnail when I paste the link (in the site preview) into social media sites (i.e. Facebook, Twitter).

Example: https://www.accrualbowtie.com/leave-it-better-than-you-found-it

Is there an adjustment that needs to happen to a template or Grav (or possibly a plugin) to make this work?

Thanks!
:purple_heart:

8 years ago Solution

Without knowing exactly how these sites generate post thumbnails, I've always assumed they pick an image that looks like a headline or "hero" image. With your page and the antimatter theme, the axe graphic is set as the header background, so I imagine it doesn't use that. There are no others in that article I can see.

But I wouldn be surprised if there's not an alternate way using og:... meta tags to specify a thumbnail image. From the Grav docs, og:image?? That looks suspiciously like it might work.

👍 1
8 years ago

Hugh is right - all of the Facebook and Twitter OpenGraph tags are in the Grav docs under Front Matter. There is a place you can test those and reset the cached image in Facebook, not sure about Twitter. I don't have a link, you'll have to Google it.

👍 1

Suggested topics

Topic Participants Replies Views Activity
Content & Markdown · by Jochen, 1 year ago
6 1486 1 year ago
Content & Markdown · by Ton Haarmans, 2 years ago
10 1146 2 years ago
Content & Markdown · by Jan L'Am, 2 years ago
4 1015 2 years ago
Content & Markdown · by Leonardo, 2 years ago
3 925 2 years ago
Content & Markdown · by belthasar, 2 years ago
4 1397 2 years ago