Anders Norén Remakes Davis Theme As Davis Blocks With Full Site Editing Support – WP Tavern

WordPress theme author Anders Norén has revamped his popular Davis Theme to support full site editing. The new theme, Davis Blocksfeatures the same clean design as its predecessor and can be used as a starter theme or a lightweight blog theme.

Norén said he built Davis Blocks to be as small as possible, while maintaining the same look as the original theme. The updated theme has no JavaScript and weighs only 248 KB, most of which are the PT Serif font files and the theme screenshot. It contrasts sharply with Norén’s first block theme, Tovewhich was loaded with 52K custom CSS.

“The promise of block themes is that eventually themes will no longer need to include custom CSS,” Norén said. “A basic theme, without any custom block styles, should be able to get away with just using theme.json. The core isn’t there yet – there are some blocking issues, like alignment styles – but it comes close enough.

by Noren intro message as the theme covers many of the current challenges faced by block theme authors, such as structural issues such as aligning an outer margin on smaller screens, the need to override some base styles, l inability to style buttons in file and search blocks with theme settings .json, and more. He looks forward to removing more CSS included in Davis Blocks as these issues are resolved.

Although Norén identifies Davis Blocks as a classic blogging theme with an emphasis on typography and long-form articles, it can be transformed into any type of theme with its support for full site editing features. . Users can easily customize the header and other templates to add or remove blocks and change the color scheme according to their own needs.

Davis Blocks comes with six template files (404, Archive, Index, Page, Search, and Single) and three template parts (Header, Footer, and Loop). Although there’s been a lot of buzz around how indispensable models have become, Norén chose to forgo including any in this theme.

“With the progress made on the Template Directory, grouping block models in the theme folder felt like a step in the wrong direction,” he said. Over 800 templates are now available in the directory, so it will be interesting to see if other block theme authors are going in the same direction or insisting on including their own custom templates.

Davis Blocks is available for free from the WordPress Themes Directory and can also be installed through the Add New Themes admin menu. The addition of Davis Blocks brings the number of block themes in the directory to 91.

Amanda J. Marsh