Create Block Theme Export creates unwanted .php files
-
I have a Custom Block Theme. And i use the Create Block Theme, it helped me a lot with the Fonts. But when i try to use Create Block Theme > Export, then the Plugin creates of every template-part an extra folder: patterns with.php files in it.
My block theme does not have patterns and only templates and parts with .html files.
The template part eg. footer.html looks afterwards like this:<!-- wp:pattern {"slug":"teste-theme-blank-theme/footer"} /-->
And it creates a footer.php file with the code in it.
When i use Create Block Theme Clone, then there are no .php files in it.
I tought, for patterns i had to register those patterns in the functions.php file of the block theme. But by this export there ist nothing like this in my functions.php fileSo my question:
( i use wordpress 6.7 or higher. test envirement ist WAMP )
Is this wanted ? Becaus a block theme should not include .php files, i thought. Or is this, because of wordpress version 6.7 ? This i have not tested.
- You must be logged in to reply to this topic.