-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
💡 Initial Feedback #1
Comments
The reason why |
Ahh, that's fair. So the main thing is handling Otherwise, I want to automate all of this in |
The block templates, parts and patterns are already included, |
Nice, ok. I think step 1 then is to get a new method added to Once that is done, I will automate the process of adding it to Outside of that, do the templates/stubs look ok? |
The |
Hmm, that seems a little blah to have to manually configure/maintain...but I'm not seeing a way to register them otherwise with PHP. I imagine it's possible though, I'd have to look into where it's getting parsed in |
With any luck, everything should be pretty automated/seamless at the moment after running # Make sure Acorn is updated to v4.2.0
$ composer require roots/acorn
# Install Acorn FSE Helper
$ composer require roots/acorn-fse-helper |
Has anyone had success with this on a Roots Radicle setup? I'm trying to make parts, patterns and templates available globally for all themes by defining them within the root directory. However the The setup I'm trying to achieve is the following:
Keeping in mind that currently WP detects whether the active theme supports FSE with |
👋
I just made Acorn FSE Helper public and I'm looking for anyone interested in FSE to check it out and give feedback on a fresh Sage 10 install before we tag a release.
The README has instructions but you will have to use
dev-main
for the moment:It currently adds:
acorn fse:init
command to handle enablingblock-template
theme support and publishing some initial stubs based on @strarsis's sage10-fse fork.@blocks
and@blockpart
Blade directives based on the directives proposed by @dsturm in acorn#314.It is otherwise pretty simple – the only thing I think missing from strarsis's fork is asset handling.
One thing I'm curious about (cc: @strarsis) is what the advantages are using
add_editor_style
and the like? I feel like if you're using Tailwind, you can take advantage of it's@config
directive like so (even for non-FSE):Create a second Tailwind config called
tailwind.editor.js
that setsimportant
to the.editor-styles-wrapper
class as well as extends your defaulttailwind.config.js
config as apreset
:and then in
editor.css
:and then just have
editor.css
enqueue the way it does out of the box in Sage withenqueue_block_editor_assets
.Is anyone aware of any immediate downside to this method outside of it being specific to Tailwind?
I do not personally use FSE and am just trying to help – so please let me know if I overlooked anything or if anyone has any input/ideas.
The text was updated successfully, but these errors were encountered: