nanosoup/erebus
最新稳定版本:1.0.7
Composer 安装命令:
composer require nanosoup/erebus
包简介
A starter theme for Wordpress sites built with Mimir
README 文档
README
This is a template for a WP site.
Example blocks and Field Groups
Within this theme you will find in the classes/ACF folder - Blocks and FieldGroups directories.
These are here for example only on how to register a new block for Gutenberg along with the field groups for the block.
Seeing the example blocks in action
To activate the example blocks follow these steps:
- Update the namespaces in both testimonials classes to match your site namespace
Change this:
namespace NanoSoup\Erebus\ACF\Blocks;
To this:
namespace {{ SITE_NAMESPACE }}\ACF\Blocks;
- Add the following code to your functions.php file:
$fieldGroups = new \{{ SITE_NAMESPACE }}\ACF\FieldGroups\Testimonials();
$fieldGroups->init();
$testimonials = new \{{ SITE_NAMESPACE }}\ACF\Blocks\Testimonials();
$testimonials->init();
You will then be able to select and use the Testimonials block within the Gutenberg editor
统计信息
- 总下载量: 9.94k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Unlicense
- 更新时间: 2018-10-27