Log in Sign up

Fallback thumbnail?

Is there a way to set a default thumbnail image that will be used for posts without an image attached?


21 days ago, 1 replies   developers   thumbnail   Edit question

Yes, you'll want to modify your template's source code.

The trick is basically this:

{{^entry.thumbnail.large}}
<meta property="og:image" content="{{{blogURL}}}/path/to/thumbnail-fallback.jpg">
{{#entry.thumbnail.large}}

You'll want to add this to <head> section in the head.html template file, along with other locations which reference {{thumbnail}} in your template. If you have any questions about this, please don't hesitate to ask

Answered 21 days ago ยท Edit answer