{"id":532,"date":"2021-01-07T11:10:10","date_gmt":"2021-01-07T11:10:10","guid":{"rendered":"https:\/\/mklasen.com\/?p=532"},"modified":"2021-03-26T16:16:10","modified_gmt":"2021-03-26T16:16:10","slug":"adding-image-sizes-to-the-wordpress-block-editor-gutenberg","status":"publish","type":"post","link":"https:\/\/mklasen.com\/adding-image-sizes-to-the-wordpress-block-editor-gutenberg\/","title":{"rendered":"Adding image sizes to the WordPress Block editor (Gutenberg)"},"content":{"rendered":"\n

I was surprised that my image sizes didn’t show up automatically in Gutenberg. Even after some extensive use of search engines I couldn’t find any solutions that would make them show so I did what anyone would do in this situation: Ask a friend.<\/strong><\/p>\n\n\n\n

My good friend Mark Jansen<\/a> provided me with a code snippet within minutes and saved me a bunch of time. Thanks Mark!<\/p>\n\n\n\n

Below you’ll find a code snippet that contains a function to add the image size as well as a function that shows the image size in the block editor.<\/p>\n\n\n