Open
Description
openedon Aug 30, 2024
What
Allow the option to customize how captions are displayed on the Gallery Block
Why
Currently, it is only possible to change the text, and highlight it as a way to customize it, but there isn't a direct way to change the background of the caption element.
Some themes add styles like blurry or colored backgrounds and users don't have a way to change that, other than custom CSS.
How
Controls can be added to the toolbar
But adding them to the sidebar settings of the Gallery block and/or the image blocks can be a fitting solution too.
Options could be: background styles and caption alignment (over image/below it - left right ...)
As a workaround, there is this CSS code (Works with theme Tenku):
/* Remove blur effect from captions */
.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before {
display: none;
}
8629501-zen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
Issues or PRs that were reported via Happiness. Previously known as "Happiness Request".Issues or PRs that were reported via Happiness. Previously known as "Happiness Request".Features related to Gutenberg integration on WordPress.com.Features related to Gutenberg integration on WordPress.com.Blocks that come with Gutenberg.Blocks that come with Gutenberg.All features accessible on and related to WordPress.com.All features accessible on and related to WordPress.com.Feature requestsFeature requests
Type
Projects
Status
Needs Triage