-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
FSE and project vision in the long run #48006
Comments
I am trying to understand why you want template parts to be reusable when you switch themes? Content should not be in template parts or templates, but in post types, like before. In a classic theme, your header and footer or other custom parts are also not persistent when you switch themes. |
My recommendation for getting a solid overview is to download the block themes from the theme directory* and look at what they have in common. |
Related: |
Thanks @carolinan for the linked resource, it helped me to understand better. I have been testing many block themes these days. I actually messed up myself, thinking they were lost forever , instead I had forgotten which theme was active at the time of creation and, therefore until I reactivated that theme I could not recover them. Mentally I thought that since they are user editable via GUI , these template parts were saved in a space related to the "user" and not the "theme". I infer that, a theme developer who wants to create a block theme with FSE, after creating a template parts via GUI, copy the code to a file inside "theme-root/parts/xxxx.html". I apologize for the trivial question which is the result of my oversight. |
As for the rest of my original question i hope you could help me with this doubt i have about the future direction of FSE. I have read in other issues that there is an attempt to standardize the semantic tokens that "themes" will then go on to use, in the same way that happens in theme T23 (Twenty Twenty Three) and its "Styles".
Therefore, in this theme there is a contract/interface defined by T23 and respected by the "styles". From what I see in some issues, I understand that there is an attempt to define that contract/interface at the "Site Editor" level, and therefore the "theme" will have to respect that contract in order to be interchangeable with other "themes". Am i wrong ? |
You can read topics by labels in this repository, for example, overview and tracking issues. |
Exactly what i was looking for, thanks @carolinan. Related labels:
[Type] Overview
|
It's not clear to me what FSE will be in future.
I opened this issue to be able to embrace the project vision.
I'm re approaching Wordpress after 2 years of React development.
I stopped using Wordpress when Gutenberg is introduced, and now that I'm coming back i feel a mix of excitement and confusion.
I'd like to have a solid overview to decide how should i develop themes for clients.
My doubts are these:
When witching theme what should happen ??
When switching theme what should NOT happen ??
When switching theme, template parts created with the GUI are not present anymore, should i export them and create a plugin out of them to preserve it across theme change ?? Or FSE is not built with theme switching in mind ??
If Theme Switching is an essential feature, this means that in the future, all the community will use a unique FSE theme that is responsible for defining all semantic token slot, and developer, with a child theme, will only provide a theme.json to define which primitive value (color #2A2A2A ) is mapped to which semantic token (bg-primary) ??
I was tempted to open this in "Discussion", but it seams to be little used.
Let me know if i should moved there these questions.
The text was updated successfully, but these errors were encountered: