• Resolved andrewcodes404

    (@andrewcodes404)


    Create Block Theme -> ?Create child of ….
    Gives me a zip with three files readme.txt, style.css and them.json

    It works on the styling side of things but I get “Template part has been deleted or is unavailable” showing on the front end.

    I guess I’m not expecting to see template parts in the child theme but how is the child theme meant to the connect to the parent’s templates?

    In the past the child theme would just suck in and use the php files from the parent and then you’d add some additional style or js.

    Whats the plan here is child themes ever going to work with blocks?

Viewing 8 replies - 1 through 8 (of 8 total)
  • It works on the styling side of things but I get “Template part has been deleted or is unavailable” showing on the front end.

    Hi @andrewcodes404 I wasn’t able to replicate this issue on my site. All template parts are available as expected. I would suggest checking which version of the Create Block Theme you are using. What you have described sounds like this issue which was fixed with version 12.2.

    Thread Starter andrewcodes404

    (@andrewcodes404)

    WP Version – WP 6.2
    Create Block Version 1.8.1?

    @thelmachido what did you do to replicate my issue?
    When you click “create child theme” and the zip is created what is in the zip?

    Hi @andrewcodes404 I followed the steps for the plugin to create a child theme.

    My site is using the Twenty Twenty Three theme, I activated the plugin created a child theme – uploaded the zip file to the site – Activated it.

    The templates and their parts are displayed as expected, let me know if this isn’t what you are referring to. These are the files in the zip folder.

    Screenshot 2023 04 20 at 15 42 34

    This may be a plugin or theme conflict. Please attempt to disable all other plugins, and use one of the default (Twenty*) themes when creating the child theme. If the problem goes away, enable them one by one to identify the source of your troubles.

    Thread Starter andrewcodes404

    (@andrewcodes404)

    thanks @thelmachido, I do not think your screen shot shows a child theme. If the child theme has it’s own template files then what happens when the parent theme updates it’s templates? Would these changes be reflected in the child theme?

    I have test on a new WP install using Local with one plugin (create block theme) It works with 2023 I create the child theme and it my a dir with three files.. (readme.txt, style.css, theme.json) this is enough and it works

    However when I try this with my theme https://github.com/andrewcodes404/rethink-block-theme
    When i export the child-theme I get the same three files but on installing the child theme in the sit editor , I get the error that the “Template part has been deleted or unavailable”

    Hi @andrewcodes404

    I do not think your screen shot shows a child theme. If the child theme has it’s own template files then what happens when the parent theme updates it’s templates? Would these changes be reflected in the child theme?

    When you have made changes to the theme the child theme will include files with the changes made. That would explain why you don’t have some templates and I have more, I have made changes to some of my templates.

    However when I try this with my theme?https://github.com/andrewcodes404/rethink-block-theme
    When i export the child-theme I get the same three files but on installing the child theme in the sit editor , I get the error that the “Template part has been deleted or unavailable

    I see, do you have the same issue when you create a child theme of the TT3 or TT2 themes?

    Thread Starter andrewcodes404

    (@andrewcodes404)

    @thelmachido “I have test on a new WP install using Local with one plugin (create block theme) It works with 2023 I create the child theme and it my a dir with three files.. (readme.txt, style.css, theme.json) this is enough and it works”

    Plugin Author Sarah Norris

    (@mikachan)

    Hi @andrewcodes404. I believe this problem is related to an upstream issue in Gutenberg: #44243

    Are you able to fix the issue on your side if you remove "theme":"rethink-block-theme"?from the?<!-- wp:template-part --/> tags? This is described as a potential fix here. I still think the upstream issue should be fixed in Gutenberg, but hopefully this helps unblock you for now.

    Thread Starter andrewcodes404

    (@andrewcodes404)

    @mikachan ?? ?? thank you

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Create Child Theme – where are the templates?’ is closed to new replies.