dil_bert Posted November 18, 2021 Share Posted November 18, 2021 difference of template structure: Wordpress traditional themes vs FSE-(full site editing) themes I want to find out how the templates of traditional themes are different form FSE-(full site editing) themes; can we say so: A template of a traditional theme would have this structure: ├── theme-name │ ├── template-parts │ │ ├── content.php │ ├── templates │ │ ├── template-cover.php │ │ ├── template-full-width.php │ ├── index.php │ ├── style.css and besides this a FSE theme would have this structure: ├── theme-name │ ├── block-template-parts │ │ ├── header.html │ │ ├── footer.html │ ├── block-templates │ │ ├── index.html │ ├── index.php │ ├── style.css in other words, the structure of a very simple block theme is structured like so: theme |__ style.css |__ theme.json |__ functions.php |__ block-templates |__ index.html |__ single.html |__ archive.html |__ ... |__ block-template-parts |__ header.html |__ footer.html |__ sidebar.html |__ ... To sume up: The difference with existing WordPress themes is that the different templates in the template hierarchy, and template parts, are block templates instead of php files. In addition, this example includes a theme.json file for some styles. Question: is this the whole description? Well how can we see the differences between the both types love to hear from you. Quote Link to comment Share on other sites More sharing options...
Philwiss Posted November 19, 2021 Share Posted November 19, 2021 21 hours ago, dil_bert said: difference of template structure: Wordpress traditional themes vs FSE-(full site editing) themes I want to find out how the templates of traditional themes are different form FSE-(full site editing) themes; can we say so: A template of a traditional theme would have this structure: ├── theme-name │ ├── template-parts │ │ ├── content.php │ ├── templates │ │ ├── template-cover.php │ │ ├── template-full-width.php │ ├── index.php │ ├── style.css and besides this a FSE theme would have this structure: ├── theme-name │ ├── block-template-parts │ │ ├── header.html │ │ ├── footer.html │ ├── block-templates │ │ ├── index.html │ ├── index.php │ ├── style.css in other words, the structure of a very simple block theme is structured like so: theme |__ style.css |__ theme.json |__ functions.php |__ block-templates |__ index.html |__ single.html |__ archive.html |__ ... |__ block-template-parts |__ header.html |__ footer.html |__ sidebar.html |__ ... To sume up: The difference with existing WordPress themes is that the different templates in the template hierarchy, and template parts, are block templates instead of php files. In addition, this example includes a theme.json file for some styles. Question: is this the whole description? Well how can we see the differences between the both types love to hear from you. Know how you can see the differences? By looking. You just showed the differences what do you think you're gonna see? Are you shocked that different web pages and themes have different layouts and folders? C'mon dude. Youve been poking at wordpress for years, and a question like this has no decent answer. be like asking "whats the difference between a small building and a larger one? This one has more rooms, and there is a HALLWAY! How can I see the difference?" You just SAW the difference. That's it. No mystery. Quote Link to comment Share on other sites More sharing options...
Philwiss Posted November 19, 2021 Share Posted November 19, 2021 And before you gripe about the answer, you need to think more about the question. Because what you're really asking is "why are two web pages different?". Since it's not obvious to you the answer is "because they are". Different pages call different things. In different folders. With different files. That is the difference between the 'two types'. How many years are you going to have to work on web sites before you know that? Going on 3 yrs just at this site with your wp questions Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.