WordPress Block Editor on Speckyboy Design Magazine https://speckyboy.com/topic/wordpress-block-editor/ Design News, Resources & Inspiration Mon, 18 Dec 2023 14:16:46 +0000 en-US hourly 1 How to Build a 404 Page with the WordPress Site Editor https://speckyboy.com/404-page-wordpress-site-editor/ https://speckyboy.com/404-page-wordpress-site-editor/#respond Thu, 05 Oct 2023 07:57:55 +0000 https://speckyboy.com/?p=154220 We show you how the WordPress Site Editor can help you build a custom 404 page. Don't take your 404 page for granted!

The post How to Build a 404 Page with the WordPress Site Editor appeared first on Speckyboy Design Magazine.

]]>
A great website has many ingredients. But some tend to fly under the radar. The venerable 404 page is a prime example.

Web designers spend hours perfecting a site’s layout, functionality, and content. However, we don’t always pay attention to the 404. Why is that?

It’s easy to take the 404 page for granted. It’s often hidden for one. We may not think of it until we stumble upon the page.

Content management systems (CMS) like WordPress make them even less visible. That’s because themes often come with preconfigured templates. We may not think to review what’s there.

That could be a missed opportunity. The 404 page is a place to help users navigate your website. They may look elsewhere if they can’t find what they need. And WordPress block themes open the door to customization. You can add features without touching code.

Let’s explore how the WordPress Site Editor can help you build a custom 404 page.



Start with a WordPress Block Theme

To start, you’ll need to install a copy of WordPress. You can use a local site or a web hosting account.

Next, it’s time to activate a block theme. However, a fresh install of WordPress will do this for you. The bundled default themes now work with the Site Editor.

We’ll use the Twenty Twenty-Three default theme for this demonstration. But you can use any block theme you like. The WordPress theme directory has several available for download.

Even better is that a basic 404 page doesn’t require plugins. WordPress includes enough blocks to build a functional page.

Edit Your 404 Template in the WordPress Site Editor

Now that we have a WordPress block theme, we can focus on our 404 page. Let’s start by navigating to Appearance > Editor inside the WordPress admin.

Next, we’ll click on the Templates link in the sidebar.

This screen displays all of the templates that come with your theme. The Twenty Twenty-Three default theme comes with a 404 template listed as Page: 404.

What if your theme doesn’t come with a 404 template? It’s possible to add a new theme template using the Site Editor. Just be sure to keep the WordPress template hierarchy in mind.

Assess the Template

Our 404 template is a bit sparse. It consists of a paragraph block and a search field. Both items are helpful. But we can do better, right?

A quality 404 page is there to guide users. Remember that they arrived here by mistake. The link they wanted to visit isn’t available.

What can we do to improve this page? We can think of a few additions that would make a positive impact.

The original template contained only a search field and some descriptive text.

Add Some Helpful WordPress Blocks

First, we’ll add a Page List block. This one provides a map of content for users to navigate. We love that the list shows parent and child relationships.

Adding the WordPress Page List block.

Maybe our visitor was looking for a blog post? Let’s add a Latest Posts block that shows six recent articles.

We can also include a button that links to the Blog page. Users can click it to gain instant access to our archive.

Adding the Latest Posts block with a button linking to our Blog page.

Let’s narrow things down a bit as well. Our blog has several categories and tags. We can use the Categories List and Tag Cloud blocks to add direct links to them. We’ll also use the Block Editor to create a multi-column layout.

Adding the Categories List and Tag Cloud blocks.

What if our visitor still hasn’t found what they need? We’ll add a Cover block that encourages them to contact us.

A Cover block contains a call-to-action.

It seems like we’ve covered all the bases. Our 404 page will serve as a launch point for users to find desired content.

The finished version of our 404 page template.

Helping Users Find Their Way

We’ve taken a basic 404-page template and turned it into a hub. And we did so with native WordPress blocks. A few minutes was all it took to enhance the user experience.

There’s always room for more enhancements, though. You could add some third-party blocks to help users navigate. And a live search feature would improve the core WordPress function.

All told, the Site Editor simplified the template-building process. It didn’t require us to write code. And it offers plenty of layout options.

Don’t ignore your website’s 404 page. Improving it is worth the effort. And the WordPress Site Editor makes it easier than ever.

The post How to Build a 404 Page with the WordPress Site Editor appeared first on Speckyboy Design Magazine.

]]>
https://speckyboy.com/404-page-wordpress-site-editor/feed/ 0
What’s in a Word? WordPress Terminology at a Crossroads https://speckyboy.com/word-wordpress-terminology-crossroads/ https://speckyboy.com/word-wordpress-terminology-crossroads/#respond Tue, 12 Sep 2023 10:59:26 +0000 https://speckyboy.com/?p=154159 WordPress tends to struggle with messaging. Could it harm its long-term future? What could be done to create a more user-friendly vocabulary?

The post What’s in a Word? WordPress Terminology at a Crossroads appeared first on Speckyboy Design Magazine.

]]>
WordPress isn’t like other content management systems (CMS) on the market. Sure, there are other free and open-source options. But they don’t have nearly as big of a market share.

That leaves WordPress to compete with commercial offerings. Platforms such as Shopify and Wix come to mind.

Again, these systems can’t match WordPress’ market share. But they do have an advantage in marketing muscle. They have the resources to create a seamless campaign. They can speak to their targeted audience with clarity.

WordPress tends to struggle with messaging. You can see it at both the macro and micro levels. It covers big things like defining what the platform does and who it’s for. And it also happens with individual features.

The result is confusion – even among seasoned users. It also makes things harder for those who teach others. There’s a lack of consistency. Not to mention frequent changes to the terminology we use.

How much does this impact WordPress? Could it harm the software’s long-term future? And what can be done to create a more user-friendly vocabulary? Let’s take a deeper look at the words that define WordPress.



Who Are We Speaking To?

WordPress is an incredibly flexible platform. We can use it in a variety of ways. Thus, it appeals to both technical and non-technical users.

This appeal is both a blessing and a curse. On the bright side, WordPress continues to thrive in part because it offers so many possibilities.

But the words we use to describe WordPress don’t apply universally. A conversation among developers is bound to be more technical. Some terms are likely to confuse everyday users.

Yet it seems like developer speak is the dominant language in WordPress. We use exclusionary terms that are difficult for others to understand. You see it in the core software and third-party themes and plugins.

Perhaps this stems from where WordPress and its ecosystem come from. Many developers are responsible for both building and promoting products. Most aren’t marketers by trade.

Product descriptions and documentation tend to be written by developers. As such, developer speak is likely to be used. The content isn’t as user-friendly as it could be.

It's important to avoid technical jargon when describing WordPress features.

An Ever-Changing WordPress Core

The past decade has brought significant change to WordPress. The advent of the Block and Site editors has impacted content creation and website design.

Each of these items has undergone a descriptive overhaul. The Block Editor was initially referred to as “Gutenberg,” for example. The name was derived from the Gutenberg project, which oversees this and other features.

As for the Site Editor, it’s also a part of the Gutenberg project. But the feature was initially called “Full Site Editing.”

The names were eventually changed. They now more accurately reflect what each feature does. These are positive and well-intentioned moves. But the cat was already out of the bag, so to speak.

We now see these terms used interchangeably. This may not impact veteran WordPress developers very much. But what about new users? Do they understand that the Site Editor is the same as Full Site Editing? And what to make of the differences between block themes and classic themes?

We’ve created an unnecessarily confusing situation. And there is plenty of blame to go around. For instance, writers like myself have added fuel to the fire.

The terminology surrounding the Block and Site Editors can be confusing.

How Do We Fix the WordPress Word Scramble?

Here comes the difficult part. How do we use terminology that everyone can understand?

I think it starts with the WordPress project. Feature names should be reflective of what they do. But they should be named and described in the simplest of terms.

Perhaps this sounds like no big deal. But WordPress contributors have a lot on their plates. There’s only so much time to argue about names.

We did see a lot of thought put into this recently, however. The Command Pallete feature that shipped with WordPress 6.3 underwent a name change. Project contributors debated the merits of the original name (Command Center). They realized that it might be taken out of context and addressed the issue.

The creation of user-friendly terms will trickle down to the community. Writers will use it in their tutorials. And product makers will use it in their marketing efforts.

The community also has a responsibility. We must speak to WordPress users in plain language. We must limit the use of developer terms.

A little guidance would also help. WordPress has a developer-focused glossary of terms and a user-focused Semantics page. We should study them.

But perhaps we can educate product makers on methods for creating user-friendly marketing and documentation materials. That’s not necessarily a responsibility of the WordPress project.

Still, it could help to make the platform easier to understand. And it’s a part of keeping WordPress on top for the long term.

Simplfying WordPress terminology starts with its open source project.

A User-Friendly Experience Starts with Words

The words we use matter. They can be the difference between friendly advice and an insult. People use them to form opinions.

What people read about WordPress will impact their decision to use it. If the software sounds confusing, they may head elsewhere. They may never fire up a demo to see for themselves.

It behooves all of us to think about how we talk about WordPress. Are we keeping new users in mind? Or are we losing them with technical jargon?

The impact may not be immediate. But by simplifying our language, we can attract more users than we lose. That’s highly important for the future of the project and its ecosystem.

The post What’s in a Word? WordPress Terminology at a Crossroads appeared first on Speckyboy Design Magazine.

]]>
https://speckyboy.com/word-wordpress-terminology-crossroads/feed/ 0
Essential WordPress Block Theme Features for Web Designers https://speckyboy.com/wordpress-block-theme-features-web-designers/ https://speckyboy.com/wordpress-block-theme-features-web-designers/#respond Wed, 23 Aug 2023 07:37:43 +0000 https://speckyboy.com/?p=152746 The number of block themes is increasing, yet not all cater to the needs of web designers. We explore those key block theme features designed for professionals.

The post Essential WordPress Block Theme Features for Web Designers appeared first on Speckyboy Design Magazine.

]]>
Web designers working with WordPress have always had options. There is a myriad of ways to build a quality website. It’s all about finding the right fit for your needs.

That’s why the newfangled world of block themes has been disruptive. They’re different than classic themes. They don’t rely as heavily on PHP. And then there’s the whole concept of using JSON to define styles and options.

Block themes do come with advantages, however. Using one may mean writing fewer lines of code. And a block-based approach means not having to reinvent the wheel. That’s because many layout and functionality features come standard with WordPress.

The number of available block themes is increasing. But not all are ideal for web designers. We need flexibility and easy customization.

With that in mind, let’s check out some essential WordPress block theme features that focus on professionals.



A Minimalist Approach to Design

Readymade WordPress themes are popular. They promise a faster start on web design projects. Yet they can also be very opinionated.

That clashes with our ability to build custom websites. It seems like you can waste hours ripping a theme apart. You then have to rebuild it to match your vision. Starting from scratch may have been more efficient.

Thus, a minimalist approach makes sense. A strongly opinionated block theme is no better than a classic counterpart. It requires too much effort to customize.

Blockbase may be the best example of a minimalist theme. It makes very few design decisions. It’s the proverbial blank canvas. Still, the theme offers enough options to please designers.

Minimalism is a subjective quality, though. Not everyone wants a blank canvas. A theme that offers a few extra bells and whistles is also worth considering.

The key concept is to spend the bulk of your time moving forward. Some themes make it nearly impossible to do so.

The Blockbase WordPress theme takes a minimalist approach to design

A Selection of Style Variations

Block themes are supposed to make web design easier. And style variations are among their most powerful features. They make it possible to switch color and typography schemes. It takes only a few clicks to transform your site.

Web designers can use this to their advantage. A style variation may make for quicker progress. For example, a theme that offers light and dark color schemes saves us from building them.

This concept also fits with minimalist themes. Style variations that serve as a solid foundation are ideal. We can choose a variation and further customize it within the Site Editor.

Style variations won’t fully represent a finished product. But they are a step in the right direction.

Block themes can offer multiple style variations

A Set of Basic Block Template Parts

Think of block template parts as reusable sections of a theme. They’re not full-blown templates. But we can use them to power smaller areas within a template.

It’s a highly flexible feature. For example, you might create a block template part to display a call-to-action on blog posts. You could also create a variety of layouts for a site’s header. There are so many possibilities here.

A block theme that includes a set of template parts would be helpful. We can add common elements using minimal effort. We’ll have more time to focus on project details.

Let’s use Blockbase as an example. The theme includes several header variations. Everything from minimal to full-width options is available.

We can change header layouts within the Site Editor. Customization is easy. We have the option to edit the existing blocks or add new ones.

But why stop at headers? A theme could also include block template parts for other areas. Footers, sidebars, author bios, and navigation styles are possibilities. Anything to improve efficiency is worth considering.

Block Template Parts can be strategically placed throughout your theme

Custom Block Patterns for Niche Sites

Like block template parts, block patterns are reusable. However, block patterns are implemented at the content level. We can add them to any page or post.

Patterns once again save us from reinventing the wheel. And they can range from basic layouts to (almost) fully-formed content areas.

WordPress offers a community-driven block pattern directory. Find a pattern you like and then paste it into your page. Or import custom patterns directly within the block editor.

Theme authors can also include custom block patterns. The advantage is that these patterns can better reflect the theme. For example, they may take typography and color into account. That makes for a seamless fit with the existing design.

Authors might offer patterns that fit the theme’s niche. Including grid patterns or card layouts to a magazine theme, for instance. A portfolio theme could also provide galleries or project listing patterns.

Block patterns can make it easier to add popular design features to a page

Regardless of Theme Type, Web Designers Have the Same Needs

For web designers, the decision to work with block themes is nuanced. Block themes are the future of theming. But they work differently than the classic variety. As such, it’s easy to lose sight of what makes a block theme worthwhile.

There are some common threads, though. Web designers still need flexibility. We need a solid and unopinionated foundation. And we can’t forget simple options to help achieve project goals.

These are the same qualities we look for in a classic theme. The good news is that some block themes take web professionals into account. They eschew bloated features and focus on real-world solutions.

Regardless of the type of theme we use, needs don’t change. That’s worth remembering as we navigate a new era of building websites.

The post Essential WordPress Block Theme Features for Web Designers appeared first on Speckyboy Design Magazine.

]]>
https://speckyboy.com/wordpress-block-theme-features-web-designers/feed/ 0
10 Free WordPress Block Themes That Utilize Full Site Editing https://speckyboy.com/free-wordpress-block-themes-full-site-editing/ https://speckyboy.com/free-wordpress-block-themes-full-site-editing/#respond Mon, 07 Aug 2023 06:49:54 +0000 https://speckyboy.com/?p=137439 A collection of free WordPress block themes that utilize full site editing (FSE). All themes are easy to customize and offer a lot of flexibility.

The post 10 Free WordPress Block Themes That Utilize Full Site Editing appeared first on Speckyboy Design Magazine.

]]>
Block themes have ushered in a new era for WordPress. Through the use of full site editing (FSE), they put every facet of a website’s design within reach. There’s no need to open up your code editor, as you can point-and-click your way to a fully custom design.

But before we get too far into the weeds, it’s worth noting that block themes are fundamentally different than the classic WordPress themes you’re used to. They’re specifically built to work with FSE and the Gutenberg block editor. Think of them as an entirely separate category of theme.

Now that we have those details out of the way, it’s time to start looking at themes! Block themes are a growing segment, and therefore, it will take time for their numbers to approach the massive quantity of classic themes on the market.

Still, there are plenty of compelling options. And the fact that these themes are fairly simple to customize means that you have a lot of flexibility. If a particular design element doesn’t fit your needs, you can always start from scratch.

To help get you started on your journey, here are ten free WordPress block themes that are worthy of your consideration.


The post 10 Free WordPress Block Themes That Utilize Full Site Editing appeared first on Speckyboy Design Magazine.

]]>
https://speckyboy.com/free-wordpress-block-themes-full-site-editing/feed/ 0
What Collaborative Features Will Bring to WordPress https://speckyboy.com/what-collaborative-features-will-bring-to-wordpress/ https://speckyboy.com/what-collaborative-features-will-bring-to-wordpress/#respond Sat, 05 Aug 2023 06:17:10 +0000 https://speckyboy.com/?p=151400 How will collaborative features improve WordPress? We discuss several scenarios that demonstrate how they can streamline working together.

The post What Collaborative Features Will Bring to WordPress appeared first on Speckyboy Design Magazine.

]]>
The Gutenberg project has changed WordPress dramatically. First, the Block Editor brought an entirely new interface to content creators. Then the Site Editor came along and did the same for designers. In short: everything’s a block now.

The project is more than just blocks, though. Phase 3 of Gutenberg involves adding collaborative features to WordPress. The main focus has been on design tools to this point. Now there will be a shift toward workflow.

Workflow is an overlooked subject. It’s relevant for websites maintained by multiple people. That’s likely a significant chunk of the WordPress user base. Websites in the publishing, education, and corporate enterprise sectors are all targets.

So, how will collaborative features improve WordPress? Here are a few scenarios that demonstrate how they can streamline working together.



Multiple Users Managing the Same Page

Let’s start with a personal pet peeve. I often provide technical support to my web design clients. Helping them create a page layout is a common request. It’s often a simple task. For example, it might consist of aligning an image beside the text.

This should be easy to resolve. But WordPress allows just one user at a time to edit a page. That means my client must exit the page so that I can access it.

It’s a small frustration. But it happens often enough to be a waste of time. Plus, this limitation makes training harder.

I usually end up creating a short video tutorial for them. It’s an effective tool, if not a bit overboard. There has to be an easier way to work together.

Allowing multiple users to collaborate would be a game changer. I could walk my client through the process while we’re on the same page. They’re more likely to remember it. And I won’t have to go to the trouble of making a video. Everyone wins in this scenario.

Collaboration can be useful even on small sites. It may not be used very often. But the feature is there to help when you need it.

WordPress only allows one user at a time to edit a page

Tweaking a Page Until It’s Just Right

WordPress currently allows users to work asynchronously. But tracking changes isn’t easy. And there’s no built-in way to communicate about them.

And what if you’re making edits to a published page? There’s no way to save changes now and release them later.

These are common roadblocks for collaborators. And both are part of Gutenberg’s Phase 3 roadmap.

We’ll eventually have a system that facilitates communication between users. Stakeholders can add notes to individual pages or blocks.

Meanwhile, changes to the revisions feature would enable users to work with the future in mind. Let’s say that we want to prepare our home page for Black Friday. We can make the necessary changes and save them. Then schedule publishing for that date.

Current methods don’t offer this kind of flexibility. Thus, a streamlined experience and increased efficiency will be welcome.

The ability to track changes to content would benefit WordPress users

Custom Guidelines for Publishing Content

Some organizations have guidelines for publishing content. They may include rules for branding, word counts, or the inclusion of a call-to-action (CTA).

But how do we ensure that content creators meet these benchmarks? WordPress doesn’t prevent users from clicking the Publish button. Thus, content may be published without some crucial elements.

Workflow has long been a struggle for publishers and web designers. Consider blog post layouts, for example. They often assume the user will add a featured image. But some users need constant reminders to add them.

This issue could be solved by creating a custom workflow. Users may see real-time checklists that measure progress. Or the software could prevent them from publishing content that doesn’t meet the established guidelines.

These functions may not be part of WordPress core, mind you. But the software could provide a way for developers to build them. From there, an organization can design a workflow that meets their needs.

This eliminates some manual labor from the process. Editors can then focus on content instead of its structure.

Working Together – Only Better

Initially, the Collaboration phase of Gutenberg sounded a bit boring. It seemed like a niche functionality that impacted relatively few users. But the information that has been released so far is quite the opposite.

Collaborative features have a broad appeal. They go beyond large publishers and will reach mainstream users as well.

They’ll make it easier for freelancers to work with clients. And they’ll increase the synergy between designers and developers.

What’s more, the features outlined are wide-ranging. They’re not just a case of “Google Docs meets WordPress.” Entire workflows can be constructed. And they can evolve as needs change.

The end product is still a ways off. But it looks like this phase will be well worth the effort.

The post What Collaborative Features Will Bring to WordPress appeared first on Speckyboy Design Magazine.

]]>
https://speckyboy.com/what-collaborative-features-will-bring-to-wordpress/feed/ 0
Should a Block Theme Power Your Next WordPress Project? https://speckyboy.com/block-theme-power-next-wordpress-project/ https://speckyboy.com/block-theme-power-next-wordpress-project/#respond Sun, 16 Apr 2023 21:00:49 +0000 https://speckyboy.com/?p=149391 Discover how block-based WordPress themes can help you create stunning websites without the need for extensive coding skills.

The post Should a Block Theme Power Your Next WordPress Project? appeared first on Speckyboy Design Magazine.

]]>
Block themes have now been a part of the WordPress ecosystem for a few years. And with the WordPress Site Editor moving out of beta, I thought it might be a good time to revisit them.

The included features of both block themes and the Site Editor are no longer experimental. Nominally speaking, that makes them a viable option for production environments.

It may also help to boost their presence in the theme market. As of this writing, block themes make up just under 5% of the listings on the official theme repository.

But quantity doesn’t necessarily speak to the quality of the themes. The classic theme marketplace has been littered with low-quality offerings for years. Thus, numbers don’t tell us everything.

In the end, it comes down to features and functionality. So, do block themes have what it takes to power your next WordPress project?



A New Standard for Custom Styles

Before the Site Editor, we had the Customizer. It provided a standardized interface for theme authors to add custom options. The feature worked, but some themes created a nested mess of settings panels.

Block themes offer a different approach to customization. A global styles palette allows for setting important items like typography and colors. And theme authors can include readymade style variations that can dramatically change the look with just a click.

Beyond that, global styles can now be applied to specific blocks. For instance, you can set custom margins and padding for the Paragraph block. Or you might use custom colors and fonts on the Button block. There’s also the ability to add custom CSS to any block via an integrated textarea.

That’s a big deal. Previously, customizing block styling wasn’t easy. You might overwrite the default CSS in your theme. But new WordPress releases tended to change styles – meaning you’d have to readjust accordingly. Configuring the theme.json file was also possible. But having to manually insert specific styles is tedious at best.

Now, most tasks can be done directly within the Site Editor. Even better is that the custom styles you generate are portable via theme.json and the Create Block Theme plugin.

This makes for a smoother, browser-based design experience. That will likely hold more appeal for web designers than earlier incarnations of the Site Editor.

Style variations allow theme authors to bundle different looks.
The Twenty Twenty-Three theme includes several style variations.

Fixes To Previous Pain Points

Improving the Site Editor experience has been a priority for the project. And recent versions of WordPress have brought some welcome changes on that front.

For one, a new UI has made the Site Editor easier to navigate. Templates and template parts are neatly organized. And it’s easier to recognize the exact item you’re editing.

And the much-maligned Navigation block has also received an overhaul. Menu items can now be intuitively managed via a settings sidebar.

The Style Book feature should also come in handy. It provides a glimpse of how each block is styled. Previously, you’d have to manually add a block to a page to see how it fits within your theme. The ability to visually inspect seldom-used items in the back end helps to ensure that they meet our needs.

These and other enhancements have smoothed over a previously scattered user experience. That’s an important step. Because if the Site Editor isn’t easy to use, block themes will suffer as a whole.

The Style Book feature lets you see how each block will look on the front end.
The WordPress Style Book.

A Better Experience, but the Same Differences

A polished UX is a great step in the right direction. But that isn’t the only relevant part of using a block theme. You must also buy into the philosophy surrounding these features.

This may be the hardest thing for some web designers to accept. And there are a couple of issues at play:

A Different Way to Work

The Site Editor and block themes provide a visual way to build a website. This no-code approach can be liberating – or frustrating. The answer depends on how you prefer to work.

Developers who are used to building classic themes may not have the desired flexibility. Writing code means unlimited freedom. Every style and function can be customized to suit your needs.

As such, this newfangled way of working means accepting certain limitations. For instance, the global styles palette doesn’t include every possible styling option.

And while you can still use custom CSS within the Site Editor, it isn’t as well-organized as a traditional stylesheet. That could make future maintenance more cumbersome.

Not everyone is ready or willing to adopt a new workflow. Block themes force our hand.

Giving up Total Control Over Layout

Client-proofing can be a major part of building a website. The idea is that we can allow clients access to the items they need (content, the ability to upload images, etc.). At the same time, we can protect the integrity of the site’s layout.

Block themes aren’t necessarily built with this in mind. They provide ready access to the site’s header, footer, and everything in between. A rogue client could easily do some damage.

The Site Editor includes a “lock” function that prevents tampering. But it’s easy to disable.

With classic themes, it’s possible to embed elements directly into a template. This makes it completely off-limits within WordPress.

This shift has led to a debate within the WordPress developer community. For some developers, giving up control may be a bridge too far.

While it's possible to lock block layouts, the feature isn't foolproof.
Template Part Blocking in the WordPress Site Editor.

Block Themes Have Grown Up

All told, block themes are in a better position to fulfill their potential. And much of the credit should go to the team behind the Site Editor.

The improvements to building within WordPress are noticeable. This should help to put block themes on the map. They are now a serious option for web designers, rather than a curiosity for early adopters.

This doesn’t mean they’re the right fit for every project and person. The philosophical differences between block and classic themes still exist, after all.

But the future looks bright. With the Site Editor being stripped of this “beta” label, theme authors are more likely to build for it. And the rest of us will have more products to choose from.

Will there be a point when block theme adoption surpasses its classic counterparts? If it happens, it won’t be immediate. But it will be interesting to see how things evolve.

The post Should a Block Theme Power Your Next WordPress Project? appeared first on Speckyboy Design Magazine.

]]>
https://speckyboy.com/block-theme-power-next-wordpress-project/feed/ 0
How to Use Block Template Parts in a Classic WordPress Theme https://speckyboy.com/how-to-use-block-template-parts-in-a-classic-wordpress-theme/ https://speckyboy.com/how-to-use-block-template-parts-in-a-classic-wordpress-theme/#respond Tue, 31 Jan 2023 07:35:26 +0000 https://speckyboy.com/?p=145885 We show you how you can use block template parts within a classic WordPress theme, and how you can implement it on your website.

The post How to Use Block Template Parts in a Classic WordPress Theme appeared first on Speckyboy Design Magazine.

]]>
Sometimes, it’s the unexpected features that make WordPress so powerful. Those little things that you didn’t know you need can end up having a big impact.

WordPress 6.1 has brought about one of these hidden gems: the ability to use block template parts within a classic theme.

It takes the capabilities of block themes and ports them over to their classic counterparts. Classic themes still make up the overwhelming majority of the market. Therefore, it makes sense to bring them up to speed on the latest tools.

Let’s explore what this feature does and why you might want to use it. Then, we’ll demonstrate how you can implement it on your website.



What’s a Block Template Part?

WordPress 5.9 introduced Full Site Editing capabilities. When combined with a block theme, the feature allows users to edit various templates within the back end.

Block template parts represent any area of a website you’d like to manage within the WordPress Site Editor. Examples include the site’s header and footer. But they could also include niche areas as well.

Theoretically, a block template part can be as broad or narrow as you like. This allows web designers to define only the theme elements they want to make editable. At best, this offers convenience for site owners while protecting the layout from any major mishaps.

Unlike the custom templates that have long been used in classic themes, block template parts are saved as HTML files. They also consist of block markup, rather than PHP.

Classic themes have traditionally used the WordPress Customizer to make specific areas editable. The feature works well enough but lacks the advanced capabilities of the Site Editor. Now, there’s a way for these themes to move past those limitations.

Adding a Block Template Part to a Classic Theme

Adding a block template part to a classic WordPress theme is a relatively simple 4-step process. Here’s an example of how to set things up.

Step 1: Allow Block Template Parts in Your Theme

The first step involves allowing your theme to use block template parts. This can be accomplished by adding a code snippet to your theme’s functions.php file:

Code snippet courtesy of Learn WordPress.

Note that if your theme’s functions.php file already has a function that adds theme support for other items, you’d only need to paste add_theme_support( 'block-template-parts' ); within the existing function.

Step 2: Design Your Template in the Block Editor

Next, it’s time to fire up the WordPress Block Editor. The easiest way to go about this step is to create a new page – we’ll call ours “Test Block Part”. It can be deleted once we have our block template part up and running.

Within this page, we’ve created a simple two-column layout. It includes our fictional client’s contact information and links to their social media profiles. Everything here uses standard blocks included with WordPress core.

The idea is to allow our client to make edits to this information as needed – but without having to touch the rest of the site’s layout.

Our block template created within WordPress.

Step 3: Copy and Paste Block Markup into an HTML File

Now that we have our layout built, it’s time to copy and paste the block markup into an HTML file.

There are a couple of options for copying the block markup:

  1. Select the blocks you’d like to copy within the Block Editor and enter CTRL + C (or COMMAND + C on a Mac) to copy the markup, OR;
  2. Enter the WordPress Code Editor for your page by clicking on the Options button within the Block Editor, then copy the relevant markup;

Switching to the Code Editor within WordPress.

Next, open the code or text editing app of your choice and paste the block markup into a new file. Our markup looks like this:

Save the file as an HTML document into the /parts directory of your theme (create the folder if it doesn’t already exist). Note that you don’t need anything else in the file besides the block markup.

For our example, we’ll call our file footer-contact-info.html. Make note of the file’s name, as we’ll need it in the final step.

Step 4: Add the Block Part Template to Your Theme

Now that we have our block part template created, we’ll need to add it to a PHP template in our classic theme.

WordPress has a built-in function called block_template_part() that we can use to call our block template part into the theme. It uses the HTML file’s name (minus the “.html” extension) to locate the template. Here’s what our code looks like:

We can add this function wherever we’d like the block template part to display. In this case, we’ll add it to our footer.php template.

All that’s left is to upload our updated theme files to the server. Once that’s complete, we’ll refresh the page and find our block template part proudly displaying at the bottom of the site.

Our block template part displayed on the front end of the website.

Edit Your Block Template Part Anytime

Whenever we need to make a change, our custom block template part is only a few clicks away. To find the template, visit Appearance > Template Parts, then click on the template’s name (footer-contact-info).

The WordPress Template Parts screen.

Edits can be made via the Block Editor – just like any WordPress page or post. Save your changes and they’ll appear on the front end of the website.

*Note: Some early implementations of this feature contained a bug that caused a block template part to be uneditable within WordPress. Adding a theme.json file to the theme temporarily fixes the issue.

Changing the layout within the WordPress Block Editor.

Bringing Classic WordPress Themes into the Block Era

The ability to use block template parts in a classic WordPress theme is a step forward. Theme developers can stick with the power and flexibility offered by PHP-based themes while adding block template support where needed.

It’s also a way to open specific elements up to back-end editing without having to switch to a block theme. The process is easy to implement and much less labor-intensive than starting from scratch. The result is savings in both time and money.

In addition, it offers us a way to move beyond the Customizer. That feature will likely be phased out over time, so the ability to switch to block template parts helps us get a head start on migration.

Best of all, there are tons of potential use cases for this functionality. It may be just the thing you need to add a layer of convenience to your next WordPress project.

The post How to Use Block Template Parts in a Classic WordPress Theme appeared first on Speckyboy Design Magazine.

]]>
https://speckyboy.com/how-to-use-block-template-parts-in-a-classic-wordpress-theme/feed/ 0
3 Ways to Enhance Custom Layouts with the WordPress Block Editor https://speckyboy.com/enhance-custom-layouts-wordpress-block-editor/ https://speckyboy.com/enhance-custom-layouts-wordpress-block-editor/#respond Mon, 08 Aug 2022 06:16:53 +0000 https://speckyboy.com/?p=141892 We share three methods to enhance custom layouts with the WordPress block editor. Turn something basic into a highly-customized setup.

The post 3 Ways to Enhance Custom Layouts with the WordPress Block Editor appeared first on Speckyboy Design Magazine.

]]>
With the Gutenberg Block Editor, WordPress provides a way to build custom layouts baked into the core software. You no longer need a page builder plugin to create multiple columns, embed media, or add a grid of blog posts.

While that represents progress relative to the old Classic Editor, you’ll still need a bit of help if you want to do anything more than edit colors or font sizes. As of version 6.0, advanced styling for individual blocks isn’t readily available in a default installation of WordPress.

There are some fairly simple workarounds, however. Today, we’ll introduce you to three ways to enhance your custom layouts with the WordPress block editor. They’ll help you turn something basic into a highly-customized setup.



Option #1: Write Custom CSS

If you’re comfortable writing code, you can customize pretty much every aspect of your block editor layout via CSS. It’s perfect for those who are already building custom WordPress themes and want to client-proof their work.

How you go about the process depends on how widespread you want the styles to be implemented. In this example, we’re looking for a one-off solution. Therefore, the easiest method is to add a custom CSS class to a block.

The block editor’s settings panel has an area just for this purpose:

  1. Click on the block you want to style;
  2. Click the Advanced panel in the settings area to the right;
  3. Add your custom CSS class name to the Additional CSS class(es) field;
  4. Save your work;

Here, we’ve added the custom class rounded-corners to an image block.

Adding a CSS class to a WordPress block is an easy way to create custom styles.

Next, we’ll add that class to our theme’s CSS and define some styles. If your theme uses the WordPress Customizer, code can also be placed into its Additional CSS panel.

.rounded-corners {
     border-radius: 10px;
}

Note that you’ll also want to add this code to your theme’s editor-style.css file (if it exists) to see your custom styles reflected within the block editor.

Looking at the front end, our image now sports some beautifully rounded corners!

CSS now in place, our example image now has rounded corners.

Option #2: Set Default Styles via Theme.json

Among the early drawbacks of the block editor was the difficulty in applying consistent styling. You had to target several CSS classes that were defined in the core software.

The advent of the theme.json file greatly simplifies the process. Instead of searching around for all of the relevant CSS, you can define block styles directly within a single file. And you have the flexibility to target blocks as broadly or narrowly as you’d like.

Layout and design aspects such as custom color palettes, typography, and spacing can be defined via theme.json. Best of all, this feature is compatible with all WordPress themes.

If you’re already using a newfangled block theme on your website, you can edit the theme.json file within the theme’s root folder (keep a backup of the original – just in case). WordPress provides some documentation with examples to guide you.

For those using classic themes or building from scratch, tools such as ThemeGen allow you to visually build a theme.json file. Select your styles, export the theme.json file and drop it into your theme’s root folder. WordPress will recognize the file and apply the styles. It even writes the CSS for you!

The ThemeGen tool helps you create a custom theme.json file.

Option #3: Use the Editor Plus Plugin

Looking for a no-code solution and don’t want to deal with theme.json? The Editor Plus plugin has you covered. It allows for advanced styling of block layouts directly from within the editor.

Activate the plugin, and the default block editor settings area will gain a variety of new panels. From there, you can set custom padding, margins, borders, sizing, and a whole lot more. If you want visual control over every aspect of your site’s layout, Editor Plus offers a straightforward solution.

The plugin also adds a handy selection of custom blocks as well. Features such as accordion UIs, icons, and progress bars offer a bit more style and content flexibility.

Going this route does require a long-term commitment, however. Disabling the plugin will result in a loss of any custom styles you’ve created. Therefore, it’s worth considering the benefits and drawbacks before making a decision.

The Editor Plus plugin adds custom style options to blocks.

Take Your WordPress Page Layouts to the Next Level

In some ways, it makes sense to think of the block editor as a starting point. With it, we can create all manner of custom layouts. But until there are more configuration options added to WordPress core, it requires some extra effort to fully customize styling.

The three options above provide a path to leveling up your block layout styles. Whether you’re looking to enhance a single element or site-wide features, there’s a method for doing so.

All things considered, theme.json may be the best long-term solution. It’s baked into WordPress core, and everything’s contained within a single file. From a maintenance perspective, this is preferable to the other options.

However, there are plenty of reasons to choose custom CSS or even a plugin. In the end, it’s about finding the best fit for your needs and workflow.

The good news is that you don’t have to settle for the default block editor styles. Use your favorite tool and start building!

The post 3 Ways to Enhance Custom Layouts with the WordPress Block Editor appeared first on Speckyboy Design Magazine.

]]>
https://speckyboy.com/enhance-custom-layouts-wordpress-block-editor/feed/ 0
You Can Now Create Your Own Block Theme Within WordPress https://speckyboy.com/create-block-theme-within-wordpress/ https://speckyboy.com/create-block-theme-within-wordpress/#respond Mon, 18 Jul 2022 06:36:52 +0000 https://speckyboy.com/?p=141601 Thanks to the new Create Block Theme plugin you can now create a block theme fully from within WordPress and even export it for use elsewhere.

The post You Can Now Create Your Own Block Theme Within WordPress appeared first on Speckyboy Design Magazine.

]]>
WordPress Full Site Editing (FSE) allows us to edit various aspects of a website without the need for code. It has placed previously-hidden portions of a theme within reach of non-designers. And perhaps made a web professional’s job a bit easier in the process.

But that’s only scratching the surface of FSE’s potential. More advanced capabilities are being developed. Among them is the ability to create an entire block theme within WordPress.

Let’s think about that for a moment. Historically, there have been two main methods for implementing themes. The first is to build your own from the ground up using PHP, HTML, JavaScript, and CSS. The other is in downloading a third-party theme and tweaking it to your liking.

Thanks to the Create Block Theme plugin, there’s now a third method: creating a block theme fully from within WordPress. From there, you can export your creation for use elsewhere.

It sounds revolutionary in terms of how we build websites with WordPress. How does it work? Today, we’ll take an early look at Create Block Theme and show you what it can do.



What the Create Block Theme Plugin Does

The release of the Create Block Theme plugin comes at a time when FSE is still a nascent technology. Developed by members of the official WordPress Themes Team, it may well find its way into the core software someday.

At first glance, it’s a very no-frills piece of software – but that’s by design. The plugin doesn’t add any radical new functionality to the site editor. Rather, it provides a means to export the work you’ve already done. And there are a few other goodies as well.

When you download Create Block Theme and activate it on your website (it’s also recommended to run the latest version of the Gutenberg plugin), you’ll notice a new menu item located at Appearance > Create Block Theme.

This screen provides you with the following options:

Export Active Theme
If you’re already using a block theme, such as Twenty Twenty-Two, and have made changes in the site editor, you can export the customized version of the theme. This might come in handy if you’d like to create a custom starting point for other projects that use the theme.

Create Child of Active Theme
In the past, child themes have been recommended to ensure that customizations don’t get overwritten when you download updates to your theme. As it pertains to block themes, a child can serve as a way to distribute specific variants of the parent. For instance, one may contain a different typographic or color scheme.

Clone Active Theme
This option copies your active theme and includes any changes you made to it in the site editor using a new name. Since it’s a separate copy, this allows you to work on the new theme without accidentally harming the original.

Overwrite Active Theme
If you’ve made changes to the active theme and want them to overwrite its default settings, this option allows you to do so.

The Create Block Theme options page.

Building a Custom WordPress Block Theme

The process for building a custom WordPress block theme involves making any desired changes via the site editor (Appearance > Editor). Change your theme’s header, footer, content areas, and whatever else your heart desires.

But before you can do that, it’s important to choose the right block theme. For example, you could go with a bit of a blank canvas such as Blockbase. This allows you to start from scratch and create a fully custom look. It also means not having to tear down any existing theme elements you don’t want.

If you prefer something with more fit and finish, there are several block themes available that can provide a great starting point. You’ll have an established layout and can make any necessary tweaks to match your needs.

Regardless of how you start, Create Block Theme will allow you to export your theme for use on another WordPress install.

Customizing the Blockbase theme with the WordPress site editor.

Exporting Your Custom Block Theme

In this example, I’ve made some basic customizations to Blockbase. Now it’s time to export the theme and install it on another local WordPress website.

As mentioned earlier, Create Block Theme provides several export options. I chose to create a child theme and give it a custom name. This means that I’ll need to have a copy of Blockbase installed on any other websites I’d like to use my new child theme on.

Exporting a child theme using Create Block Theme.

Exporting generates a ZIP file, which I can then import into my new site. On the new WordPress site, I’ll navigate to Appearance > Themes, then click on the “Add New” button.

Once on the Add Themes page, I can upload my new block theme by clicking the “Upload Theme” button and selecting the exported .ZIP file from my hard drive. Finally, I’ll activate the child theme.

Importing the generated .zip file into a new WordPress website.

The results look good. The changes I made survived the export process and seemed to work well on the new site. Theoretically, this would provide a solid head start when working on future projects.

The custom block theme in its new destination.

Is This the Future of WordPress Theme Building?

The ability to create a block theme from within WordPress and then use it anywhere could be a game-changer for your workflow. It potentially cuts out a lot of time spent dealing with code and makes for a complete visual design experience.

Still, the convenience may not mean much if the site editor doesn’t offer all of the tools you need. It’s fairly simple to create different layouts and adjust colors, etc. But there will likely be scenarios when code is necessary.

It all comes down to how you like to work. Some of us will gladly stick with the processes we have in place – and that’s OK. Comfort and stability are important – particularly when FSE and block themes are in their early stages.

However, the portability offered by Create Block Theme is a peek into the future. And having the option to build WordPress block themes this way will be attractive to many web designers. It’s a development worth keeping an eye on as it continues to evolve.

The post You Can Now Create Your Own Block Theme Within WordPress appeared first on Speckyboy Design Magazine.

]]>
https://speckyboy.com/create-block-theme-within-wordpress/feed/ 0
A Guide to Choosing the Right WordPress Block Plugins https://speckyboy.com/choosing-the-right-wordpress-block-plugins/ https://speckyboy.com/choosing-the-right-wordpress-block-plugins/#respond Thu, 09 Jun 2022 06:15:17 +0000 https://speckyboy.com/?p=140919 Among the top features of the WordPress Gutenberg block editor is the ability to add new blocks at any time. This allows us to implement additional types of content and...

The post A Guide to Choosing the Right WordPress Block Plugins appeared first on Speckyboy Design Magazine.

]]>
Among the top features of the WordPress Gutenberg block editor is the ability to add new blocks at any time. This allows us to implement additional types of content and functionality on an as-needed basis.

This is contrary (in theory, at least) to the many page builder plugins on the market. They tend to bundle a large variety of options that are included regardless of whether you want them. For instance, even if you have no interest in using a slider, there’s likely one bundled in the package.

While it’s nice that the block editor provides something closer to an à la carte experience, it’s not without risk. There’s a temptation to experiment – which brings about a familiar problem: having a bunch of unused plugins mucking up your WordPress install. Worse yet is deactivating a block, only to realize that it has negatively impacted some content along the way.

It’s not surprising. After all, block plugins are still plugins. The same rules and limitations apply. So, before you install them all willy-nilly, read our guide to choosing the right WordPress block plugins.



Determine Your Goals and Needs

The block editor is still a relatively new experience for many. As such, there can be some confusion regarding how to accomplish specific tasks. Therefore, take a moment to think about what you want to achieve before considering plugins.

Some items are relatively self-explanatory. If you want to add an interactive chart, that will generally mean using a plugin. The same goes for a contact form or an accordion UI.

However, not everything is so straightforward. Achieving a particular layout, for example, isn’t necessarily plugin-related. That may be accomplished via a block pattern and the core blocks already included with WordPress.

Even in that case, a plugin may provide a shortcut. But, just as with other types of plugins, it’s worth weighing the benefits of this approach against any potential downside.

Once you have a grasp of your goals, you can determine whether a block plugin is an appropriate way forward.

Adding a block pattern in the WordPress block editor

Choose Blocks Just as You Would Any Other WordPress Plugin

Blocks are part of the overall WordPress plugin ecosystem. With that, the same level of scrutiny should apply when choosing a block plugin.

A plugin’s reputation, user base, and frequency of updates are all relevant vital signs. Block plugins that are poorly rated or show a support forum full of unanswered questions are red flags.

Then there’s the debate between niche usage and plugins that aim to be a jack-of-all-trades. This applies to block plugins just as much as it does to other categories.

There are several popular block suites, where multiple block types are included. This is not unlike the issue we mentioned earlier with page builders. Whereas you may only need one particular block, you’ll still have to live with the others as well.

That stands in contrast to the Block Directory, which lets users add blocks one at a time. However, this requires authors to make blocks available in the directory. Some blocks are only available as part of a larger suite.

Installing a block plugin from within WordPress

Be Aware of the ‘Lock-in’ Effect

What happens if a block plugin you’ve chosen is no longer a good fit? What if it’s abandoned by its author?

Similar to switching from a page builder, moving on from a block plugin has consequences. Deactivate it and you may lose formatting and/or functionality of the affected content. Some cleanup will be required, whether or not you decide to use a different plugin.

It’s an especially difficult scenario for large, content-heavy websites. Having to go through multiple posts to account for a block you’re no longer using can be time-consuming.

To some degree, you’ll be locked into any block plugin you choose. The more you utilize it, the more effort is required to leave it behind.

This reinforces the importance of choosing plugins with a solid track record. While there are no guarantees of longevity, you can at least gain some peace of mind.

If you uninstall a block plugin, your content may not display as expected

Add WordPress Blocks Thoughtfully

Blocks represent the present and future of WordPress. The flexibility they provide, along with their ability to house custom solutions, can help to transform any website. And they can do so with minimal effort from us.

Even so, it’s important to have a thoughtful approach to installing third-party blocks. Just as with traditional WordPress plugins, quality can vary greatly from one product to another.

In the end, it’s about choosing blocks that can fulfill your needs both now and in the future. We hope that this guide helps to make the process a little easier!

The post A Guide to Choosing the Right WordPress Block Plugins appeared first on Speckyboy Design Magazine.

]]>
https://speckyboy.com/choosing-the-right-wordpress-block-plugins/feed/ 0