tj-digital / erebus
A starter theme for Wordpress sites built with Mimir
Installs: 2 357
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Language:SCSS
Type:wordpress-theme
Requires
- php: >=8.2
This package is auto-updated.
Last update: 2025-03-11 19:31:26 UTC
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
Description
Setup
Prerequisites
- Follow the instructions in the wiki here
Initial Setup
- Some of these instructions may still be relevant here
- run
yarn install
in root directory
Running the Project
Run composer install
in the project root, then switch down into the project theme wp-content/themes/theme_name
and run yarn install
.