Separate plugin and theme, or…?
-
Hi, I am close to releasing my first theme, but I have run into a bit of a cycle that I cant break out of…. let me explain.
The theme relies heavily on custom Gutenberg blocks I have created. These blocks require the themes css to work properly, and the theme requires the blocks to have full functionality, so in my head it made sense to include the blocks INSIDE the theme.
Theme checker throws this as an error because I am registering blocks inside a theme. I completely get the logic, that if a user creates content with the blocks then deactivates the theme then we don’t want that content to be orphaned, but… the blocks and the theme are symbiotic. Having one without the other would make zero sense.
Bearing in mind the symbiosis, if I was to break out the blocks as a plugin (and somehow separate out the css), I would then need the theme to require the plugin…so it would need to reference that plugin. But the plugin kind of requires the theme, so would need to reference the theme. In short, which would I need to submit for review first, and how to show they are related?
Alternatively, having the blocks registered inside the theme – would that be an automatic rejection of the theme?
I hope that makes sense and that I haven’t massively over complicated something! I look forward to some clear thinking being pointed at me 😀
The topic ‘Separate plugin and theme, or…?’ is closed to new replies.