Genesis 自定义块

描述

Genesis自定义块为WordPress开发人员提供了他们需要控制现代WordPress的区块状现实的工具。

WordPress块编辑器(又称Gutenberg)为我们构建页面,帖子和网站的方式开辟了一个全新的世界。 Genesis自定义块使其易于利用此并构建自定义块,以便按照您想要构建的方式。 无论您是想要实现自定义设计,提供唯一功能,甚至删除对其他插件的依赖,Genesis自定义块都会提供您需要更快地命中“发布”的工具。

控制设计 – 实施美丽,定制设计,具有微调前端模板控制。

构建唯一的功能 – 构建块功能并按所需行事。

扩展 & 整合 – 轻松扩展自定义块以与第三方应用程序和插件集成。

功能

一个熟悉的体验

使用您已经知道的接口在WordPress管理员内工作。

区块字段

从越来越多的可用字段列表添加到自定义块中。

简单的模板

Let the plugin do the heavy lifting so you can use the built-in editor, or familiar WordPress development practices to build block templates.

开发者友好功能

As an alternative to the built-in editor, there are simple functions, ready to render and work with the data stored through your custom block fields.

目前可用区块字段

  • Inner Blocks Field
  • File Field
  • 文字字段
  • 图像字段
  • URL 字段
  • 触发器字段
  • 文字区域字段
  • 选择字段
  • Range Field
  • 无线电台字段
  • 数字字段
  • 多选选择字段
  • 邮件字段
  • 颜色字段
  • 检查框字段

通过Genesis Pro 做更多

对于想要升级Genesis自定义块的人来说,Genesis Pro订阅带来了一些严重的功率用户功能:

Genesis 自定义区块专业版功能

  • 寄存器字段
  • 分类法字段
  • 文章字段
  • 用户字段
  • 富文本字段
  • Classic 文字字段
  • 区块等级 导入/导出
  • 24/7 支持

Genesis Pro包括现代WordPress内容创作者,营销人员和开发人员的更多价值。 了解有关Genesis Pro的更多信息

您可以依赖的开发人员文档。

开发人员工具只与他们的文档一样好。 这就是我们认真对待他们的原因。 以下是一些链接,让您入门:

链接

屏幕截图

安装

此插件可以直接从您的网站安装.

1.登录并导航到插件→添加新
2.在搜索中键入“Genesis Custom Blocks”进入Enter.
3.在搜索结果列表中找到Genesis自定义块插件,然后单击立即安装。
4.安装后,单击“激活”链接。

它也可以手动安装.

1.从WordPress.org下载Genesis Custom Blocks插件。
2.解压缩包并移动到您的插件目录.
3.登录WordPress并导航到插件屏幕.
4.在列表中找到Genesis自定义块,然后单击“激活”链接。

常见问题

问:我是否需要使用Genesis框架或任何其他Genesis插件/主题来使用此插件?

不可以。您可以完全独立地使用此插件。 您所需要的只是在WordPress站点上启用了区块编辑器。

Q: Do I need to change to the new built-in Template Editor in /wp-admin?

A: No. You can keep using your PHP block templates like block-example.php.

评价

2022年7月21日
Thanks for the great plugin! Couple of questions...I see there is a way to include a .css file along with the .php file in the blocks folder inside the theme. However, is there also a way to enqueue a .js file with the block as well? Also, is there a quick way inside of php to determine if the user is access the block from the preview or from the front end? I know that there is the ability to create a separate preview php file, but the reason I ask is because there may be some cases where I literally only have a slight difference between the preview and live block and it would be nice to be able to write a conditional into the block php rather than copying all of the code and maintaining two separate files. Thanks, Wil
2022年7月1日
Great tool for creating custom blocks. Interface is well designed and intuitive. I'm sure the author is aware that there's another competing custom block plugin that offers features not available in the Genesis Custom Blocks free version. While I don't mind paying for a commercial version to get the full feature set, having to pay for the pro plugin as part of a Genesis package that includes other things I don't need which costs a whopping $360 a year is a major turn off. I'd suggest selling the pro plugin as a separate product for a reasonable fee.
2022年3月24日 1 回复
With this great plugin you create - even in the free version - custom blocks on your page in the easiest way. And now that it's compatible again, I love it again.
2021年12月31日 1 回复
If you know a bit of HTML and CSS, it's incredibly easy to create a custom block with Genesis Custom Blocks. It took me about 10 minutes from installing the plugin for the very first time until I had created my «Blog Post Lead Paragraph» custom block. And I did not even read the manual. I am really impressed!
阅读所有18条评价

贡献者及开发者

“Genesis 自定义块” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

“Genesis 自定义块”插件已被翻译至9种本地话语言。 感谢所有译者为本插件所做的贡献。

将“Genesis 自定义块”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.5.1 – 2022-08-09

  • PHP 8.1 compatibility fixes. PR 119

1.5.0 – 2022-03-24

  • Allow previewing InnerBlocks in the block editor. PR 114
  • Allow opting in to analytics. PR 101
  • Remove some of the Settings page logic, as it’s moved to the free plugin. PR 42

1.4.0 – 2021-10-14

  • Optional modal for editor fields. PR 93

1.3.1 – 2021-08-26

Fix for fields with long strings

  • Fix a regression that caused editor errors for fields with long strings. PR 89
  • Update e2e tests for WP 5.8. PR 87

1.3.0 – 2021-07-20

InnerBlocks, File field, WP 5.8 compatibility

  • Add InnerBlocks, allowing any block inside a GCB block. PR 68
  • Add a file field, like for .pdf or .zip files. PR 74
  • In WP 5.8, prevent a PHP notice by using the new filter ‘block_categories_all’. PR 85

1.2.0 – 2021-06-28

New Template Editor, Editor Preview, and Front-end Preview

  • Template Editor UI, though the PHP templates still work just like before. PR 65, PR 69, PR 72
  • Add Editor Preview and Front-end Preview. PR 63
  • Don’t display the editor form if there’s no editor field. PR 64
  • Fix an issue with the default value of ‘Checkbox’ and ‘Toggle’ fields. PR 60
  • Display the help text in the TextareaArray setting. PR 62
  • Improved abstraction by removing duplicated copy. PR 78

1.1.0 – 2021-01-27

新的,更轻松的编辑器,撤消/重做和单独的编辑器/检查员

  • 模板和船上通知,恢复E2E测试。 pr 55
  • 将功能添加到重复按钮。 pr 53
  • 自动后缀化区块和字段名称,做可重复的工作PR 51
  • 将字段添加到正确的位置,允许创建新块。 PR 48
  • 添加编辑器字段UI组件 PR 44
  • 添加“区块设置”面板。 PR 43
  • 编辑区块UI:渲染区块字段PR 41

1.0.3 – 2020-10-21

允许更多文本并提高激活体验

  • 允许具有大量文本的字段。 pr 39
  • 确保首次安装时显示所有子菜单。 pr 40

1.0.2 – 2020-09-16

从Textarea字段修复通知

  • 从具有错误类型的TextArea字段修复通知。PR 33

1.0.1 – 2020-09-01

如果区块实验室1.5.6也处于活动状态,请修复错误

  • 使用块实验室1.5.6修复错误,其中定义了两次函数
  • 最新区块实验室不会发生错误

1.0.0 – 2020-09-01

插件发布

  • 轻松创建自定义区块
  • 13 字段来添加
  • 简单模板,带有PHP文件