Replies: 6 comments 9 replies
-
@utoppo thanks for the feedback and publishing your approach! At the beginning as I started to use Flynt, I was thinking the same way, but after a while I figured out that a child theme is - for the projects - not needed. Installing new dependencies or updating existing ones, means that components may need to get adjusted and the inc folder is a nice approach instead of implementing customizations directly inside functions.php which can grow fast. Using css inside a child theme and bundle it with the parent, is may also a little confusing. Maybe my thinking is wrong and I would be happy to learn what’s in your opinion the biggest downfalls, when using Flynt as a boilerplate instead of a child theme? And where do you see other downfalls with the current approach or rather where do you the biggest advantages when using a child theme? |
Beta Was this translation helpful? Give feedback.
-
have u had opportunity to discuss this with team? Flynt's really quite nice. But lack of parent/child separation makes production adoption -- here, anyway -- sketchy. with timber2's timber/starter-theme development slowed until timer2 release (probably?), a Flynt child, with 'premium' plugin support, gets really interesting! |
Beta Was this translation helpful? Give feedback.
-
Firstly, thanks to all for the feedback and also the work you have invested! Updating Flynt to a new version can be a bit tricky, even when using a child theme. We discussed the pros and cons inside the team and decided not to implement child theme support in the core for the time being. This does not mean that this feature will never be implemented, but we would like to focus on the release of the new version first and not implement such a deep feature in it. We are always happy to hear new ideas and we look forward to receiving them in the future 🚀 |
Beta Was this translation helpful? Give feedback.
-
thx for the reply. a shame -- Flynt's otherwise just about the right fit here -- but certainly understood about project priorities; same here. will hopefully revisit if/when this changes. thx agn o/ |
Beta Was this translation helpful? Give feedback.
-
Hi, For a website factory project, I'm using a parent-child theme architecture. First of all, a big thanks to @utoppo for investigating the setup of a child theme with Flynt – it saved me a lot of time 👍. What would be the best strategy for managing assets in the child theme?
Thanks for your responses! |
Beta Was this translation helpful? Give feedback.
-
Supporting child themes would imply a deep philosophy change to the theme itself, as Flynt is not meant to follow a linear updating path. I hardly see any benefit from removing a component or modifying styles or templates in a child theme rather than the codebase itself. It might be easier to do minor updates with a parent/child architecture, but as soon as a site-breaking update, whether it's from Flynt itself or a dependency, is pushed upon, it won't make any difference at all. And it adds an unneeded layer of complexity: inheritance, override, etcetera. I also guess that introducing such a change now that v2 has been released or ensuring backwards compatibility from now on would mean less resources for cutting-edge stuff in the future. This is highly opinionated, of course. I love to read all your thoughts and needs. @timohubois, may I ask how much of the styling codebase is inherited, as a gross estimation, for an average corporate site? I have detected small styling issues here and there, but I'm not sure if you intend the base styles to be relevant at all. Shall I open an issue? Maybe a separate discussion? None at all? Thanks! |
Beta Was this translation helpful? Give feedback.
-
First of all thanks for the great starter theme! I really like the component-based approach with less bloat, less spaghetticode and better extendability + maintainability.
I would like to not use Flynt as boilerplate code, but as a parent theme. That way:
I forked the repository and started implementing the feature, based on the current next-branch.
https://github.com/utoppo/flynt/tree/nextFeatureEnableChildThemeUsage
I also created a POC child-theme:
https://github.com/utoppo/flynt-child
As Flynt makes heavy usage of
get_template_directory
andget_template_directory_uri
functions, which point to the parent theme, a lot of code had to be changed. Much of the component related stuff went from fromComponentManager
-Class to an ownComponent
-class. There still has some work to be done, but base functionality is working so far.I would like to do a pull request, when finished. But before, I wanted to get some feedback on this… What do you think?
Thanks, and greetings to my old hometown!
Beta Was this translation helpful? Give feedback.
All reactions