![]() Some developers feel very excited about block themes others are a little skeptical. However, the custom (user-made) templates are stored in a database.ĭoes it mean that it needs different plugins and a totally different approach to deal with the new theme structure? Actually, not – because what supports Gutenberg (Block Editor) will work here, including the Crocoblock JetEngine and other plugins. Instead, it has just a few PHP configuration files, but the templates are HTML files with Block Editor markup and styles stored in JSON. Also, it doesn’t use a classic template hierarchy or PHP templates. You can edit each page, post, or custom post type individually, modifying the header, footer, and other sections for this particular page or post.īlock themes don’t use traditional customizer, menu, and widget setting dashboards because you modify them directly for the particular template. It operates with patterns, reusable blocks, and templates. Now imagine that the whole website, from header to footer, including menus, widgets, and sidebars, is one large post editable with Block Editor. Its main building element is a block, and when using Site Editor, we assemble a page from blocks, filling the blank post “canvas” to get something meaningful on the front end. We all know Gutenberg, now Block Editor, right? It’s almost always used for editing posts, even if you use page builders for pages. But since that release, a block theme became a default WordPress theme after the installation. Of course, experimental block themes existed much earlier. “Block themes” means the same as “themes, fully editable with Block Editor.” But they should not be confused with different kinds of so-called “block-based” themes released some years ago, which actually don’t support SE but use blocks to a greater extent than most of the classic ones – such themes are hybrid ones.īlock themes were introduced in January 2022 with the WordPress 5.9 version. There can be other features, even full site editing, but it’s called “hybrid” because it combines all kinds of variations of classic mixed with block theme types. It also gives more control to the developer for example, they can easily leave only certain font styles and color palettes for the client because they might mess up the design if too big a list of options is there in the customizer. At the same time, it allows enqueueing only the necessary styles on the page. Their distinctive one is theme.json which consolidates all the style settings that come from different origins (core, theme, user) in one place, so they all can be customized in the block editor, and each block can be individually customized. Such themes are more on the classic side but adopt some features of block themes. Theme structure of the classic Kava theme Hybrid themes ![]() There can be a different quantity of such templates and template parts, but the main principle remains the same.Ĭlassic themes use customizers, widgets, and menu setting pages (while block themes don’t have them). Also, additional templates and template parts can be placed separately in child folders. We can see main templates in the theme folder, like index.php, singular.php, archive.php, and others. They have a classic template structure based on PHP templates, where HTML is mixed with PHP snippets. We all know classic themes very well – they have been around throughout WordPress’s history. So, there are four types of WordPress themes: There’s a big confusion around the terminology, and the WordPress team even had to conduct a dedicated discussion before version 5.9 to make some clarifications. The structure of block themes is fundamentally different from the classic ones, that’s why the WordPress 5.9 update featuring the full site editing was not like most other updates when the existing functionality was simply extended – this time, block themes came with a different theme structure.īut before talking about it, let’s clarify the topic of naming the WordPress themes. Free WordPress Block Themes You Will Enjoyīlock Theme and Types of WordPress Themes.Block Theme and Types of WordPress Themes.But the only thing we cannot ignore here is that site editing is something revolutionary, and block theme times have well and truly arrived. Both parties really have something to say. The battle has begun: there are more and more people who love block themes for full site editing and those who prefer the good old classic WordPress template structure and page builders.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |