1

What is the correct way to override theme template files in subfolders with a child theme?

I wan't to override a theme template file with the following path: /components/theme-header/

Do I have to create the same path in the child theme or just place the overriding template file with the same name in the root of the child theme?

1

the child theme should have the file to override the parent theme in the same location. So yes in the same sub-folder location.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.