https://github.com/nanosoup/erebus
Starter WP theme
https://github.com/nanosoup/erebus
wordpress wordpress-development wordpress-starter-theme wordpress-theme
Last synced: 7 days ago
JSON representation
Starter WP theme
- Host: GitHub
- URL: https://github.com/nanosoup/erebus
- Owner: NanoSoup
- Archived: true
- Created: 2018-10-19T08:14:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-27T20:14:42.000Z (almost 2 years ago)
- Last Synced: 2024-10-01T16:17:17.846Z (almost 2 years ago)
- Topics: wordpress, wordpress-development, wordpress-starter-theme, wordpress-theme
- Language: SCSS
- Size: 14 MB
- Stars: 0
- Watchers: 2
- Forks: 4
- Open Issues: 52
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Erebus site template
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:
1. 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;
```
2. 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