• Child theme has problem with the Template parts. After creating, none of the pages display a header or a footer or any other template parts. And in editor, block show message “Template part has been deleted or is unavailable: header/footer/etc.”

    All Template parts need to be manual inserted again on all Templates.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tamnik

    (@tamnik)

    Create Block Theme does not create file function.php, and that is one of the reasons why I use Child theme. This file should be added manually afterward.

    Overall, FSE Child theme needs theme.json, even so with that file, I occasionally had a problem.
    Plugin Create Block Theme creates a theme.json, and that is why you did not have a problem with Template parts.

    I will link Support Threads from Neve FSE. This theme also has the same problem.
    https://wordpress.org/support/topic/child-theme-problem-33/

    “for PHP editing, it’s better to use a plugin.” well it’s not, but that’s not the topic of this discussion.
    Through the Child theme, both PHP and CSS can be used directly from the file editor or with VS Code or similar software.

    Thread Starter tamnik

    (@tamnik)

    As I mentioned above, some FSE themes have this problem. FSE is a relatively new way of creating websites, so some bugs can be expected.

    As for child themes and custom plugins, it all depends on what you need and what your goals are.

    Just one thing to clarify, we are talking here about Custom plugin – NOT Code Snippet, but your own custom plugin. And I also do not recommend code snippet plugins. Well it is one more plugin, the problem here is not site speed, but security.
    Have witnessed the problem with code snippet plugins multiple times.

    A custom plugin is an easy way to add custom code to your website without getting into much technical detail.
    If you only want minor code changes, where you focus most on PHP, I guess custom plugin is okay.

    But if you are comfortable with coding and want true power of code, child themes give more customization flexibility. Through Child Theme you can edit PHP, JS, JSON, CSS, it can be backup it and re-insert it on other sites (even if you use different themes).

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

The topic ‘Child Theme Problem’ is closed to new replies.