From the course: WordPress Content Blocks: Working with Themes

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Extending block styles

Extending block styles - WordPress Tutorial

From the course: WordPress Content Blocks: Working with Themes

Start my 1-month free trial

Extending block styles

- [Instructor] So far in the course we've focused on making sure blocks worked properly in the theme. In this chapter we'll turn our attention to deeper integration, modifying block styles to better fit the theme and extending the functionality of blocks through style variations. The block editor is opinionated, meaning it makes a lot of decisions about what different blocks should look like on the front end. As a theme designer or developer you can impose your own opinions on any block through CSS to make that block integrate the way you want into your theme. The theme unit test data that you see here is an essential part of this process, as it gives you every available blocks so you can check what they look like in your theme and know when you need to make changes and modifications. Modifying or overriding block styles with your theme is a straightforward process. So let me show you an example of how this is done. Out of the box, the block editor lays out image galleries like the…

Contents