Menu Sidebar
Menu

WordPress

Create Guten Block Toolkit

As a follow-up to his Gutenberg Boilerplate from last year (which I wrote about previously), Ahmad Awais has published a toolkit named create-guten-block to easily generate new Gutenberg blocks. While the previous effort simplified the process of block creation, it was still a manual process heavy in NodeJS package dependencies and related configuration.

This new toolkit largely automates the process by providing a generator similar in concept to that of create-react-app. Like create-react-app, it outputs a React project with the necessary supporting file – plain JS and CSS – and the PHP needed to form the plugin. Also like create-react-app, create-guten-block has a single dependency and provides minimum customization out of the box, yet also allows running an eject command to gain full control. Only NodeJS 8+ is required to be installed to run the tool.

The code is public on GitHub.

Introducing Gutenberg Boilerplate For Third Party Custom Blocks!

The Gutenberg Boilerplate has been superseded by a new toolkit called create-guten-block. I wrote about the new tool in a recent post.

The Gutenberg initiative – a new editing experience for WordPress – has been underway for some time. Yet documentation and examples have been a bit thin on the ground, making uptake a challenge for would-be developers. Ahmad Awais has made the effort to coalesce the necessary pieces and best practices into a boilerplate. The result is Gutenberg Boilerplate.

Kudos to Ahmad for taking the initiative. I’ve been perusing what documentation and examples I could find and hadn’t yet attained a complete picture. Yet, having reviewed Ahmad’s boilerplate I have a much better grasp on how a block is put together. I plan to make an attempt at building a custom block, once I decide what to build!

The Boilerplate code is available on GitHub.

Extending WordPress: Custom Fields with CMB2

Custom fields add a tremendous amount of flexibility to WordPress’ built-in content types (posts and pages) but also to custom content types. They allow data entry of different shapes and forms versus the standard editor. I recently had to implement some custom fields on pages and decided to document how I got the job done using CMB2.

Extending WordPress – Customizing the Customizer

Introduction There has long been a practice in themes including a theme settings page within the administrative dashboard. The customizer, which first appeared in [which??] has been intended as a place to centralize appearance-related settings. WordPress has since been encouraging use of the customizer over theme options pages. The Customizer Whither options pages? WordPress for […]

The Future of WordPress

A very eloquent review of where WordPress stands in today’s web and of what it can be made into. Includes ideas for where WordPress might go in the future, some criticisms, and input from notable community members. Well worth a read for anyone who wants to check the current view of WordPress. Some good discussion in the comments as well – whoever said comments were dead??

WordPress Glossary

The WPBeginner site has unveiled a new resource for WordPressers: a glossary. WordPress resources are abundant online, but there has not been a canonical glossary on the subject – the Codex is good for what it does, but it is not a glossary. WPBeginner have taken the initiative to create a centralized listing of WordPress-related terms, along with their definitions, and link to related content as appropriate (good SEO win for WPBeginners as well). It’s a good start, but there’s much more that can be added; the people behind the site are open to suggestions! They are also interested in volunteers to help with managing the glossary.

Read the announcement post.

Older Posts

Grant Palin

Code, photos, books, and anything else