From the course: PHP for WordPress

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Theme development in the age of the Block Editor

Theme development in the age of the Block Editor

From the course: PHP for WordPress

Theme development in the age of the Block Editor

- [Instructor] The block and site editor have made considerable changes to how themes are developed in WordPress. Let's explore how it works and PHP's role in all of it. First, to maintain backwards compatibility, the "old way" of developing themes still works. So if you come across an older theme courses or tutorials, they won't break modern WordPress sites, at least not at the time of this recording. But there's no doubt that the approach has changed. Today, there are many non-PHP components. To create custom blocks, you need to install Node.js and have an understanding of React and JavaScript development. And in themes, there are two prominent places where PHP has been replaced. First is the site settings. What used to be PHP and customizer-driven is now housed in a file called theme.json. Here you can set default styles for the site, define variation styles, add theme settings, and even address templates. And speaking of templates, this is the other prominent place where PHP has…

Contents