• I’m running into an issue trying to create a child theme for a block theme using the Full Site Editor.

    I’ve got the child theme set up as all of the documentation says, and there’s two “template parts” set up the site and in teh parent themes theme.json file (for header and footer in this case). When I switch to the child there these template parts are not able to be rendered. The show in in the list of template parts as coming from the child theme, and not the parent themre, and on the front-end I see this error:

    Template part has been deleted or is unavailable: *template-name*

    The normal templates still work, including a custom template that I’ve done, so I’m assuming that this is only an issue with template parts.

    Is there some trick to keeping the template parts available when using a child theme, or is this something that just doesn’t owrk in Gutenberg yet?

    (No URL is given here as I’m running on a localhost site for development)

Viewing 3 replies - 1 through 3 (of 3 total)
  • I was wondering, what block theme are you using? Have you brought this to the attention of the theme support team on the support forum? If you could provide us additional details, such as steps to reproduce the issue or the specifics of the problems you’re facing, we’d be able to help you more effectively.

    Greatly appreciated would be a video recording of you discussing the issue briefly (you can use https://www.loom.com/screen-recorder).

    I eagerly await your response.

    Thread Starter catacaustic

    (@catacaustic)

    The themes that I’m using are my own custom themes. The parent theme has a very bare-bones file structure as it is only what I’m using for the Learn WordPress lessons on setting up a full site editor. The child theme is again jsut a very bare-bones thing that doesn’t have anything more than the stylesheet and what I thought should be a template over-ride file.

    What I have found out since I first posted this is that in a FSE theme you can’t change template files by using a child theme. The code only checks for the files existance in the parent theme and doesn’t check anything for a child theme at all.

    So it turns out that this is a core bug and not something that’s going to be resolved without changes to the core Gutenberg code.

    I have placed a ticket on Trac about this, so hopefully something will happen there… one day. ??

    I am also interested in the response, as I seem to have a related problem (patterns directory ignored when in child theme, but working when in parent theme).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Block theme template parts not working with child theme’ is closed to new replies.