区块
区块组件。无需代码。只需点击并插入内容。

无限创建
WordPress 的技术为网络提供了强大的动力,而且从未像现在这样简单易学。无论有没有代码,区块都能让您与任何内容进行可视化交互,从而实现丰富的布局、交互式上架和无尽的可扩展性。对于设计和开发来说,它们同样强大,但对于新手来说,它们仍然足够直观。

段落

标题

媒体

图片

视频

音频

栏目

文件
WordPress 的秘密力量
Blocks are the visual foundation of WordPress, and can be used to create and manage every part of your site. They're also easier than you think. Learn how to edit a block and you learn how to use all of WordPress—without having to write code. For inspiration, check out what others have done with WordPress in the Showcase.

完全的创作控制
WordPress 编辑器是在可视化画布上插入、转换、样式和移动区块的默认方式,这要归功于一个简单的拖放界面。
registerBlockType( 'your-first-block/hello-world', {
edit: function () {
return <p>Hello world (from the editor)</p>;
},
save: function () {
return <p>Hello world (from the frontend)</p>;
},
} );
世界你好(从编辑器)
自行创建
If you can’t find a block that suits your needs, create your own. Creating a block is as simple as building a React component. Use the @wordpress/create-block package to jumpstart your creation.
See what's new with blocks
最新的 WordPress 主要版本包含的更新可以改进您使用的区块,并提升您的整体网站构建体验。了解更多关于当前版本中可用功能的详细信息。

只是开始
While blocks are powerful on their own, they’re also part of something bigger and can be combined or deployed in various ways. As a unified and open syntax, they're easily understood by editors, browsers, and even AI. So whoever is editing will find it easy to make vibrant, personalized designs and experiences happen, fast.