Gutenberg Image Caption Styles Not Working

This morning I noticed that my WordPress theme’s image captions were not looking good. In fact, they weren’t looking like image captions at all:

gutenberg image caption not working

How to Fix the Gutenberg Image Caption Style Issue

I use Divi theme, but this fix should work in every WordPress theme. All you need to do is add this to your theme’s functions.php file:

add_theme_support( 'wp-block-styles' );

Add that, and your caption will suddenly look like a caption:

gutenberg image caption styles not working after 1

Was this helpful?

Toby Cryns

Toby Cryns is a freelance CTO, expert WordPress developer, and teacher.

He offers free advice to improve your freelance biz.

He also publishes small droppings every now and them to https://twitter.com/tobycryns and https://twitter.com/themightymo.com

Follow Toby's contributions on Github and WP.org.