• I was wondering what could be wrong with this…I am building some parts of “new” Full Site Editing and notice that when I am going to save one of its parts, on the sidebar it shows other parts to save/update.

    In the example in the screenshot, I am just editing the navbar template part, but see the other things present to be altered, even if they are not available in this part to be edited. There is another model “Header”, there is a page “Home” and seven reusable templates to be saved!

    The issue with updating the whole site this way is that I don’t know what is being changed.

    Do you know any configuration which should be done not to this occur? Or is there any documentation that explains this new paradigm? Or is it a bug to be fixed anytime?
    https://ibb.co/7bCBNcY

    In fact, I did press the button one with all the checkboxes marked and some of the other template parts went away emptied (I gone nuts). See in the second attachment that I could go back and retore previous state (thank goodness!)
    https://ibb.co/4WCtwsJ

    • This topic was modified 2 years, 4 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 1 replies (of 1 total)
  • Hi there!

    Unfortunately, I’m not seeing anything in your screenshots that should be updating all your templates. That doesn’t mean it is not happening, though!

    A few thoughts that might help:

    1. It’s possible for a template part to use another template part within it–which means that if you make changes to either one in templates, the changes will be applied to both. For example, in the Twenty Twenty-Two theme, the header templates:

    Header (Dark, Small)
    Header (Dark, Large)

    Which you can find pictured here are templates themselves. However, they ALSO use the template part, ‘header’ inside them, which you can see in this image of a list view here.

    This means that if I make a change to EITHER the ‘header (dark, small)’ template part itself, or if I make a change to ‘header’, which is another template part nested inside another template part, it will change all throughout the website.

    This was described to me as an intentional feature of certain themes, not a bug. It can make updating your entire website easier in one moment, but it can also make it complicated if you use a lot of unique designs! ??

    2. I also translated “O bloco reutilizável”, which I think means ‘reusable block’. These are slightly different than templates; changes you make to a reusable block that you have added to a post or page will only occur on that page. Meanwhile, template parts

    What should you do?
    A. I think my first step would be to make sure that each template part did not contain any other template parts within them.

    B. Consider watching this brief video to learn the difference between templates, template parts, reusable blocks, and block patterns. This may help you figure out what element you’re using and help you make changes only to what you mean to — either the whole website, or just one particular page or template. ??

    I hope this helps! Good luck!

Viewing 1 replies (of 1 total)
  • The topic ‘Block Theme Template parts – Why saving a part updates the other ones?’ is closed to new replies.