DEV Community

Cover image for Question about WordPress Parent theme vs Child theme
Luis
Luis

Posted on

Question about WordPress Parent theme vs Child theme

Hello,

A former developer I worked with on the past made customizations on child theme, but some of the code was placed on functions.php parent theme, he then placed all his code back on child theme, now a recent parent theme update destroyed all modifications from parent theme functions.php file.

he says it not possible to overwrite his customizations on child theme alone, since they are beyond styles. I read on wordpress documentation that when extensive customizations โ€“ beyond styles and a few theme files are made, it is a better option than a child theme to create a parent theme in order to avoid the kind of issues I am facing.

My question:

a. is it possible in your experience that a child theme cannot overwrite certain functionalities from parent theme and if that is the case, there is nothing to do about that ?

b.as an alternative one could write code on parent theme and risk losing it all when update comes around.

c. itยดs always possible to overwrite any functionality using child theme no matter how extensive customizations are.

I would appreciate your insights,
Thank you!

Top comments (0)