Child theme not loading int/extras.php


I have created a child theme to edit some .php files. All the files in the root folder /themes/shapely-child/ are loaded correctly.
However, I made a small modification to the /themes/shapely/inc/extras.php file and placed this in /shapely-child/inc/, but this file is never used. I also tried to place the file in the child theme root directory, but the parent file is always used. How can I get the child theme file to override the parent theme file?

Hi @dybedal,

I hope you are well today and thank you for your question.

Not all theme files are template files like functions.php and extras.php so they don’t get overwritten in child theme and you have to change code in them by overwriting fucntions / classes in child theme or using hooks or any other way.

You can find more information about child theme on the following page.

Best Regards,