Module3 ERP
Module3 ERP
• With WordPress, you can use pre-designed themes to determine the look
and feel of your website. Since WordPress introduced Full-Site Editing (FSE),
you’re now able to use block themes in addition to classic themes. However,
you might not know which one is best for your site.
• There are some key differences between classic themes and block themes,
making each one ideal for a different type of user. For instance, block themes
let you customize every part of your website without touching your site files or
using CSS.
An Introduction to Classic Themes and Block Themes
• Classic themes have been around the longest. These themes are more
traditional and feature PHP-based templates (although some include
elements like JavaScript).
• For example, Inspiro is one of our most popular classic themes that’s a great
option for image-heavy websites:
• With a classic theme, when a page starts to render, WordPress isn’t aware of
which blocks exist on the page. The blocks get parsed and they don’t get
added to the <head> of a page. Instead, classic theme blocks are added to
the footer when the print_late_style() function runs.
• However, with the release of WordPress 6.1, we were introduced to the Site
Editor. Now, you can build your entire site using blocks, as opposed to just
content areas like posts and pages. To use the Site Editor, you’ll need a
block theme:
• This gives you more control over your website since you can edit
website parts like headers, footers, and 404 pages. It’s also a
more accessible solution since it lets you create certain stylistic
effects without touching any code.
WordPress Classic Themes vs Block Themes : 4 Key Differences
1. PHP vs HTML
• As we discussed, classic themes use PHP to display content. They also use
PHP functions for certain tasks like displaying content, translating text, and
creating if/then conditions.
• However, the Page Templates in block themes are HTML files with block
markup. These themes will only use PHP as a fallback in case WordPress
can’t locate the HTML file. Furthermore, block themes use blocks for almost
every function, relying on block patterns and block settings to achieve certain
results.
2. Editing Capabilities
• Block themes also differ from classic themes in terms of how (and
what) you can edit. For instance, with a classic theme, you would
use the WordPress Customizer to make your changes. However,
with block themes, you can use the Customizer, but you’re also
able to edit with the Full Site Editor:
• Classic themes generally aren’t as flexible as block themes. You can use
widgets, register a navigation menu, and register a custom header, but you
can’t accomplish these tasks with your classic theme alone.
Another key difference between classic themes and block themes is that they
store files in different locations. For example, classic themes place template
files in the ‘root’ directory of your site whereas block themes keep these in the
‘templates’ folder.
Moreover, classic themes can use theme.json as long as theme authors line up
the styles for the front end. But, with block themes, the styles are streamed
automatically to the editor and front end.
4. Website Speed
Lastly, classic themes and block themes differ in terms of site performance.
Classic themes are able to load quickly as long as the entire website is
optimized for speed.
Our UniBlock theme is an excellent choice for most websites, enabling you to
make changes to your layouts like headers and footers:
• Thanks to its SEO-friendly code, this theme is clean, readable, and easy to
modify.
Block Themes vs Classic Themes: Which Is Right For You?
Here is a table to help you clearly see the differences between block themes
and classic themes:
Refefrences:
• https://medium.com/@claire.guiot/intro-to-classic-theme-development-f2c7c3
58e5b6
• https://dev.to/mikevarenek/wordpress-classic-vs-block-themes-4pi1
• https://www.wpzoom.com/blog/block-themes-vs-classic-themes/
• https://wordpress.com
• In summary, block themes are best suited for beginners that want full control
of a website. Thanks to their flexibility and customization, you don’t need any
technical knowledge to achieve certain tasks like editing headers or menus.
• However, if you prefer to stick with more traditional tools, classic themes
might be the better choice. Plus, if you’re a developer or experienced user,
you can still get the same level of customization as block themes using code.