From 085b7b066f7f358802bbeb454d82921f801989c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Bonithon?= Date: Wed, 22 Apr 2026 12:55:06 +0200 Subject: [PATCH] twentysixteen: Center text in image captions It seems to me that this would be a better default choice. Ideally, we should be able to change it via the UI, but as far as I know, that's not possible at the moment. One workaround is to use a centered paragraph via the code editor, which feels like a hack. Related: https://core.trac.wordpress.org/ticket/65111 --- src/wp-content/themes/twentysixteen/css/blocks.css | 6 +----- src/wp-content/themes/twentysixteen/css/editor-blocks.css | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/wp-content/themes/twentysixteen/css/blocks.css b/src/wp-content/themes/twentysixteen/css/blocks.css index 0e17faac5c567..5e7e8023efeb4 100644 --- a/src/wp-content/themes/twentysixteen/css/blocks.css +++ b/src/wp-content/themes/twentysixteen/css/blocks.css @@ -25,11 +25,7 @@ Description: Used to style blocks. font-style: italic; line-height: 1.6153846154; padding-top: 0.5384615385em; - text-align: left; -} - -.rtl [class^="wp-block-"] figcaption { - text-align: right; + text-align: center; } /*-------------------------------------------------------------- diff --git a/src/wp-content/themes/twentysixteen/css/editor-blocks.css b/src/wp-content/themes/twentysixteen/css/editor-blocks.css index e16c318fae434..aee154ce9bc31 100644 --- a/src/wp-content/themes/twentysixteen/css/editor-blocks.css +++ b/src/wp-content/themes/twentysixteen/css/editor-blocks.css @@ -271,7 +271,7 @@ figure[class*="wp-block-"] > figcaption { font-style: italic; line-height: 1.6153846154; padding-top: 0.5384615385em; - text-align: start; + text-align: center; } /*--------------------------------------------------------------