Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post Excerpt and Post Content blocks output wrapping divs when the post content is empty #30571

Closed
andersnoren opened this issue Apr 7, 2021 · 0 comments · Fixed by #35749
Closed
Assignees
Labels
[Block] Post Content Affects the Post Content Block [Block] Post Excerpt Affects the Post Excerpt Block [Status] In Progress Tracking issues with work in progress

Comments

@andersnoren
Copy link

What problem does this address?

The Post Excerpt and Post Content blocks output their wrapping divs (and a wrapping paragraph, for the excerpt) for posts without post content, adding unneccessary markup to the page and complicating CSS sibling targeting.

image

What is your proposed solution?

Don't output the block wrappers when the post content is empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Post Content Affects the Post Content Block [Block] Post Excerpt Affects the Post Excerpt Block [Status] In Progress Tracking issues with work in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants