-
I'm trying to asses what it will take to migrate our existing theme to a block theme. I've added a theme.json and created a folder templates with an empty file templates/index.html. File permissions for the directory and the theme file are 755. My theme.json is very simple: {
"$schema": "https://schemas.wp.org/wp/6.0/theme.json",
"version": 2,
"settings": {
"layout": {
"contentSize": "736px",
"wideSize": "1040px"
}
}
} I've removed all my existing PHP files (index.php, home.php, header.php, footer.php, even functions.php). When I try to access the Site Editor, I get the following message:
What am I missing? Why does it not work? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Silly me. I completely overlooked two empty folders – |
Beta Was this translation helpful? Give feedback.
Silly me. I completely overlooked two empty folders –
block-templates
andblock-template-parts
that where hiding in the plain site amongst other folders in the theme I'm migrating. Wordpress was taking these as the source folders for block template and never actually made it into the new folderstemplates
andparts
.