WordPress Developer Ukraine, Kyiv
WordPress Interactivity API: Reactive Blocks Without React

WordPress Interactivity API: Reactive Blocks Without React

The WordPress Interactivity API: interactive blocks without React on the front end Blocks are built with React in the editor, but on the front end they are static HTML. For an accordion, a tab group or a “show more” button, every block author used to write their own vanilla JavaScript or ship a framework. Since…
WordPress 6.4 New Features and Block Editor Improvements for Developers

WordPress 6.4 New Features and Block Editor Improvements for Developers

WordPress 6.4 for developers: Block Hooks, admin notices and options WordPress 6.4 (November 2023) is a release that looks small for users: a new default theme Twenty Twenty-Four, a lightbox for images, pattern categories. For developers it brought a few APIs that replace old workarounds: Block Hooks to insert a block into themes, two functions…
Use theme.json Global Styles and Fluid Typography in WordPress Block Themes

Use theme.json Global Styles and Fluid Typography in WordPress Block The ...

theme.json global styles and fluid typography in WordPress block themes theme.json is the single configuration of a block theme: it declares the design tokens (colors, font sizes, font families, spacing), decides which design controls the editor shows, and applies default styles to elements and blocks. WordPress turns it into CSS custom properties and styles that…
Register and Use WordPress Block Patterns for Reusable Layouts

Register and Use WordPress Block Patterns for Reusable Layouts

Register and use WordPress block patterns for reusable layouts Block patterns are ready-made arrangements of blocks that an editor inserts with one click: a hero section, a testimonial grid, a pricing table. For the block editor they are what shortcodes and copy-pasted HTML were for the classic one, only better: after insertion they are normal…
Build a Gutenberg Block with InnerBlocks and Block Templates

Build a Gutenberg Block with InnerBlocks and Block Templates

A Gutenberg block with InnerBlocks and a template Some content has a fixed shape: a feature card is always an icon, a heading, a paragraph and a button. A custom block with InnerBlocks gives editors exactly that shape, filled with core blocks they already know, and the theme styles one predictable structure instead of whatever…