Child theme of Twenty Twenty-Four not loading header part

[ad_1]

I’ve created a child theme of Twenty Twenty-Four using the WordPress plugin Create Block Theme. The child theme is loading the style.css and functions.php correctly. However, I can’t seem to make my child theme header to be applied. I’ve made a copy of the parent header.html and set the same hierarchy on the child theme:

childtheme/
├── assets/
│ └── js/
│ └── fixed-header.js
├── parts/
│ └── header.html
├── functions.php
├── readme.txt
├── screenshot.png
├── style.css
└── theme.json

Any ideias?

[ad_2]
1 Comment
  1. You need a templates folder which needs to have at the very least an index.html. At the top of the index.html (and any other templates you might make) you need to insert `<!– wp:template-part {“slug”:”header”,”theme”:”theme-name-child”} /–>`

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer