Archived topic
Child Theme sub folders not working?
3 replies · Started by pixmedia on October 25, 2022
Hellop GP Support members, hope you're all having a great day!
I've created a child theme to GP using the instructions on the documentation, but i noticed that no file works outside of the main theme directory. Tried to add the inc/structure/ folders to edit something on archives.php but the theme does not recognize the folder. Only works on files on the main directory.
Do i need to add something to the functions php for it to work or there's another trick to it? Usually this works flawless on all themes and this is the first time it happens to me.
Hi there,
That's expected behavior, only the files in the root directory of the parent theme folder can be copied to your child theme and override the parent theme files.
For more info: https://docs.generatepress.com/article/using-child-theme/
Thank you for the quick response.
I've read the link you posted and it seems there isn't a solution for this. I'll try to fix it with hooks.
No problem :)