-
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
Attempt to create a FSE theme #1
Comments
After creating the 3 standard files in the Creating the theme section, the results vary depending on the selected Experimental settings:
Obviously it's not enough. I need to follow more instructions... Creating the templates and template parts |
Results after adding template parts and the main template ( front-page.html ) to the theme.
Having debugged the first Template Part Not Found problem I developed a workaround fix and raised an issue WordPress/gutenberg#26010 I then looked at the message from the demo template. This was not found since the demo template tries to embed the
Note: the template part embedding logic doesn't appear to use the |
…ader.html template part. Create empty footer.html template part.
…yle.css when SCRIPT_DEBUG true, try Twenty Seventeen's frontpage_template hook
This is the current position.
Now I need to
then |
The structure of the .zip file is
|
I did just that, extracted the files from the Notes on subsequent updates to these comments
In a different environment I then tried to check that they were OK. The first problem was "Template part not found", appearing twice.
The results changed. Template part not found was only displayed once.
I noticed that the value of the So, some of the template parts were found and others were not. These facts indicate that I needed to change the theme's block-templates files to:
e.g. change
to
There was one other problem. What was the post that was displayed in the screenshot?
The code that mistakenly found this post is:
Here's the saved query:
This post was an autosaved revision of a post that was created over 2 years ago! The published post was 663. Note:
It wasn't immediately clear which template was being used. |
Then there were further problems:
|
|
The fact that the postId is exported is a known bug WordPress/gutenberg#25845. The possibility that the |
I asked the following on #core-editor I have a question regarding Navigation blocks and FSE. Where can I find notes explaining how the Navigation is supposed to work. What's the FSE equivalent to registering nav menu locations. At present nav menus appear to behave as static blocks. How is a theme supposed to indicate 'this is where you can put your menu'? Even if it's not yet implemented, I still want to know where the requirements and proposed solution is documented. thanks in advance One reply was: The issue though is that currently if you do not register a menu, the navigation screen in the admin is not shown, and that won’t be deprecated. So there still needs to be some alignment between the old and the new. I've therefore added a comment to the code in
Another reply was: This idea of "a defined place for a menu" is likely to not have a place in a block based theme. So how does a Theme designer create templates that contain menus?
If I could find the right place to raise an issue on Gutenberg then I would. In the mean time, I'll continue to develop the theme and discover what the workflow is when I attempt to create a new release for trying on another site ( e.g. |
I'm going to raise this as a separate issue to see if this is something I've done or a problem with Gutenberg itself. |
I've submitted a PR for this: WordPress/gutenberg#26772 |
Yesterday I took the plunge, and switched themes on my local version of blocks.wp-a2z.org ( blocks.wp.a2z ) from genesis-a2z to Fizzie. I imagine there will be many changes to Gutenberg's Full Site Editing capability over the coming months and we won't see it in core until WordPress 5.7 or 5.8. I'm not yet ready to take the risk of migrating the live site to a Full Site Editing theme. Let's hope the next theme will be quicker and easier. |
I've updated the Gutenberg source to 9.4.0-RC1. Now I get No matching template found. |
Fizzie v0.7.0 was released on 2021/08/03. Closing therefore. |
Follow the instructions to create an FSE theme...
https://developer.wordpress.org/block-editor/tutorials/block-based-themes
Note: I've called the theme Fizzie since it sounds a bit like what you'd say if you quickly read out the letters F S E.
Where F = Full, S = Site and E = Editing.
Fizzie is/was the affectionate term for the Yamaha FS1E moped from the early 1970's.
It was a hybrid; more motorcycle than bicycle. It had pedals but you never rode it without starting the engine.
The Fizzie theme may also be considered to be a hybrid, with FSE template parts using server rendered shortcodes rather than native blocks. This is so I can implement the required functionality as quickly as possible.
The text was updated successfully, but these errors were encountered: