The custom block is not working
purplefeel opened this issue · comments
Hi,
Is there full detailed documentation? From the GitHub readme, it is unclear where I need to run that starter command or what the full preview of config/poet.php
looks like.
I tried to set it up like this.
- Created a new file
poet.php
underconfig
. - Added this to the
poet.php
.
<?php
return array(
'block' => array(
'sage/callout',
),
'block_category' => array(
'custom' => array(
'title' => 'Custom Blocks',
'icon' => 'star-filled',
),
),
);
- In the theme root folder, ran this command.
wp acorn vendor:publish --provider="Log1x\Poet\PoetServiceProvider"
The log message says:
No publishable resources for tag [].
Publishing complete.
And I went to page editor, I am not seeing the new block expected.
Is there anything I am doing wrong?
Looking for help!
Thanks in advance!
Thanks, Davide,
I tried and there are no vendors listed:
wp acorn vendor:publish
Which provider or tag's files would you like to publish?:
[0] Publish files from all providers and tags listed below
>
Hi @purplefeel,
Had exactly the same problem. Workaround: publish by hand. Add
Log1x\Poet\PoetServiceProvider::class,
to the
'providers' => [
section in /config/app.php
This will be fixed in Acorn beta.8 hopefully.