block editor – Should you directly edit Template Parts and Templates from themes?

Question

Themes designed for the Editor, such as the Twenty Twenty-Three theme, come with various Template Parts (such as a Header, Footer, and Post Meta) and Templates (such as Home, Index, Search, 404) for various pages.

What is the correct way to manage these Templates and Template Parts to reduce the chance of issues when the theme is updated? Is it safe to edit these Template Parts and Templates directly, overwriting the ones that come with the theme? Or should I make copies, edit those, and then use the copies for the various pages? Or is there some other approach that is better?

0
Thomas Owens 3 weeks 2022-11-06T07:35:03-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse