Full-Width Blocks and Root Padding in WordPress 6.1

Just under a year ago, a root padding solution was introduced for block themes. This allowed designers to add padding values to their theme.json files and users to adjust it via the Styles panel in the site editor. However, there was one catch. There was no built-in way to allow full-width blocks to stretch beyond any horizontal padding and reach the edge of the screen. It was the bane of many theme author’s existence. Sure, they could write custom CSS solutions to address the problem, but that didn’t solve cases where end-users customized things.

This post was originally published on Make Themes by Justin Tadlock.

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.