Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

Sabinooo on "Child themes: change just a part without giving up on theme updates"

$
0
0

Hello!

I discovered the existence of this issue with the Hueman theme, however this is a much more generic question. Following a suggestion from WpJyogi, I'm coming here to ask.

Here's the deal : if we want to make changes to a wordpress theme, we need to create a child theme and store in there the php files that we have modified, our modified child theme files will override the "official" theme's files so that our changes are kept.
BUT that also means we're giving up on every following update to those theme files in the future, including potential (who knows!) important security updates.
Random example: imagine a severe security flaw is found in Hueman's index.php default file, this flaw will be quickly fixed in all the blogs with the Hueman theme... except in the blogs whose admin is using a child theme of Hueman in which there is a modified, even for a super minuscule edit, version of the index.php file.

That made me suddenly think... « hey... isn't that weird ? That we must replace EVERYTHING, even when we only want to do a minor change ?
Wouldn't there be a way to keep the official theme (with all the benefits of having a theme updated when it is necessary!), but tell that theme that a slight part of its code must be amended ?
»

Please, would YOU know if there's a way, any way, to achieve this ?
This "flaw" in the child theme system looks so huge I can't imagine there's no workaround...
It would be a seriously huge value added to wordpress, and I sure would welcome it as far as I am concerned :)

Thanks if you have your thoughts on this :)


Viewing all articles
Browse latest Browse all 8245

Trending Articles