Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.
This repository was archived by the owner on Nov 18, 2024. It is now read-only.

Enhancement to reduce widows and orphans in the theme #346

@beafialho

Description

@beafialho

Sometimes text can have single lines of text (widows and orphans) from a paragraph that dangle at either the beginning or end of a block of text, which blocks readability. Unless this Gutenberg issue gets implemented, one solution could be adding the code below (or something similar that achieves the same) in style.css to prevent that from happening.

image

/* Progresive enhancement to reduce widows and orphans.
/* <https://github.com/WordPress/gutenberg/issues/55190>
*/
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption {
		text-wrap: balance; /* Safari fallback */
		text-wrap: pretty;
}
p {
    text-wrap: pretty;
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions