One response on “Builder Basics: Adding Custom CSS to Block Themes

  1. Francis Jasmin's avatar Francis Jasmin

    Hello ! I have copy the twentytwentytwo fonction.php file into twentytwentythree (as proposed in the video), but it give me an error.

    twentytwentytwo php file also seem different that in your video πŸ™‚ Will try to google it, but would be cool if the description could be updated !!

Continue the discussion

Published

February 8, 2023

One major benefit of block themes is that they can be built with very little CSS. For example, the Twenty Twenty-Three theme has none. All block styles are defined in a theme.json file. While theme.json is getting more powerful with each WordPress release, you will likely need to add some custom CSS in most projects.

This Online Workshop will explore ways to add custom CSS to a block theme while ensuring those styles work correctly in the Editor and on the site’s front end. If time permits, we will also discuss a Sass workflow you can employ to optimize per-block styles.

Rate this:

Speakers

Nick Diego 53

Language

English 11386

Download
MP4: Low, Original
Subtitles
Subtitle this video →
Producer