Childs PHP files not overwriting Parent’s PHP files

Child themes are allowed to override templates, not simply arbitrary PHP files.

In WordPress, a theme consists of a bunch of PHP files which are used as Templates. You can find a list of those files in the Template Hierarchy.

Those specific template files can be overridden with new ones, but unless the parent theme has some special means for you to override other files, then files simply included by the parent as part of a support structure or as libraries for a pagebuilder piece of code cannot simply be overridden in that manner.

Leave a Comment