DEV Community

Cover image for Adding a cover image to your dev.to articles
Kehinde Abe
Kehinde Abe

Posted on

Adding a cover image to your dev.to articles

Photo by Austin Distel on Unsplash

I ran into some cover image issues when I started writing on dev.to not until I came across an article about how to add cover picture/image to your article so that prompt me to write this article to help whoever that might need it.

Note: adding a nice cover image to articles is very essential and you can do that on dev.to by adding a cover_image: entry to that block at the top. For example, the block for this post should look like this:

---
title: Adding a cover image for your dev.to articles
published: true
description: "Photo by Austin Distel on Unsplash"
tags: blogging,,coverImages,,article
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/a8c7m9up8jcpa2zuycnk.jpg

---
Enter fullscreen mode Exit fullscreen mode

Get a nice picture/images maintaining the ratio of 1000x420 pixels for better resolution.

Thank you for reading.

Top comments (2)

Collapse
 
saveshodhan profile image
Shodhan Save • Edited

I add this snippet in a new post and nothing happens.. what am i missing?

Collapse
 
jonasbn profile image
Jonas Brømsø

Did you remember to remove the comments which are there by default?

Please provide your complete snippet if possible