Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/wp-content/themes/twentysixteen/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,17 @@ function twentysixteen_setup() {

// Add support for custom line height controls.
add_theme_support( 'custom-line-height' );

// Add a control for the user to select text alignment.
// @ticket 65111
register_block_style(
'core/image',
array(
'name' => 'caption-center',
'label' => __( 'Text align center', 'twentysixteen' ),
'inline_style' => '.wp-block-image.is-style-caption-center figcaption { text-align: center; }',
)
);
}
endif; // twentysixteen_setup()
add_action( 'after_setup_theme', 'twentysixteen_setup' );
Expand Down
Loading