Wordpress parent theme vs child theme updates

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
jetzt600
New php-forum User
New php-forum User
Posts: 1
Joined: Thu Jun 25, 2020 11:15 pm

Thu Jun 25, 2020 11:19 pm

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!
simonbrahan
php-forum Fan User
php-forum Fan User
Posts: 90
Joined: Mon Jun 08, 2020 2:00 am
Contact:

Fri Jun 26, 2020 2:47 am

There are some situations where you can't overwrite parent theme functionality - the parent them has to be written in such a way that it respects child theme overwrites. It's impossible to give a definitive answer without seeing the parent theme though.
Post Reply