Open ogorzalka opened 1 year ago
Done here : https://github.com/AmphiBee/pollen-framework/commit/b54ddc85d4003c3e04536a28bfffe03273428d59
The theme need to be inside the views theme. Every theme features are available (theme.json, block patterns, block categories ...)
To target the theme view, the blade view need to be prefixed by theme::
Example :
Route::any('page', function () {
return view('theme::pages.default');
});
Implement Gutenberg’s theme.json file within the resources/views directory, exploring the possibility of specifying a custom location outside the traditional WordPress theme.
Tasks:
Expected Outcome: Upon completion of this ticket, the theme.json file will be relocated to the “resources/views” directory. The implementation aims to verify whether Gutenberg can recognize and utilize the theme.json file from a custom location outside the traditional WordPress theme structure. This provides an opportunity to organize the theme-related files in a different directory while still leveraging Gutenberg’s configuration capabilities.