Summary
This chapter has taken us on an adventure to discover the capabilities of block styles. We have seen how to add already existing styles, how to create styles using code, and some different methods to this. Not only did we walk through some step-by-step examples, but we also dived right in by adding some code to the theme itself.
Let’s recap the great expanse of things we have tackled together:
- We used a block style that is already present in a default theme.
- We customized that block style by adding a color to the style.
- We explored some code together for the first time and looked at the various approaches of adding a block style, learning how to do this using PHP and JavaScript.
- We created code and applied it to remove a single block style.
- We learned how to add a block style using PHP and two different approaches for styling.
Now that you have all of this under your belt, you can create your own block styles and customize existing themes...