diff --git a/src/wp-content/themes/twentytwentyone/assets/css/ie-editor.css b/src/wp-content/themes/twentytwentyone/assets/css/ie-editor.css index d3bbb93c11..5afd750a7a 100644 --- a/src/wp-content/themes/twentytwentyone/assets/css/ie-editor.css +++ b/src/wp-content/themes/twentytwentyone/assets/css/ie-editor.css @@ -1197,7 +1197,7 @@ h6, /* Center image block by default in the editor */ .wp-block-image, -.wp-block-image > div { +.wp-block-image > div:not(.components-placeholder) { text-align: center; } diff --git a/src/wp-content/themes/twentytwentyone/assets/css/style-editor.css b/src/wp-content/themes/twentytwentyone/assets/css/style-editor.css index 8f61bab00c..d6019c45bb 100644 --- a/src/wp-content/themes/twentytwentyone/assets/css/style-editor.css +++ b/src/wp-content/themes/twentytwentyone/assets/css/style-editor.css @@ -1128,7 +1128,7 @@ h6, /* Center image block by default in the editor */ .wp-block-image, -.wp-block-image > div { +.wp-block-image > div:not(.components-placeholder) { text-align: center; } diff --git a/src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/image/_editor.scss b/src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/image/_editor.scss index dcbf6d3511..c108a60f9a 100644 --- a/src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/image/_editor.scss +++ b/src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/image/_editor.scss @@ -1,7 +1,7 @@ /* Center image block by default in the editor */ .wp-block-image, -.wp-block-image > div { +.wp-block-image > div:not(.components-placeholder) { text-align: center; }