• Hi,

    I plan on customising the default templates (archive, search, 404 etc) of a block theme, let’s say 2025 or Ollie. Now when the theme updates, will it over write my customisations? If yes, how do I approach this? Create separate templates for all the types of pages?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    The answer is yes for the classic theme, but I’m not 100% certain about the block theme. I think creating a child theme and customizing your templates based on the parent theme is the safest bet you could make.

    Source: https://developer.ww.wp.xz.cn/themes/advanced-topics/child-themes/

    Cheers!

    Moderator threadi

    (@threadi)

    With Block Themes, customizations to templates are saved in the database. These are not overwritten during updates. In my experience, you only need a child theme with block themes if you want to write individual customizations in PHP or store your own templates, styles or patterns without them being stored in the database.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Does theme update over write my template customizations?’ is closed to new replies.