Jump to content

difference of template structure: Wordpress traditional themes vs FSE-(full site editing) themes


dil_bert

Recommended Posts


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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.