Feature Requests
Share ideas, discuss and vote on requests from other users in community
 

WHMCS 'child themes' in WordPress style to make upgrades less work

brianoz shared this idea 5 years ago
Under Consideration

WordPress implements a feature called Child Themes to allow changes to be kept separate from the core files. When an upgrade is made, the core files are upgraded and the child theme remains intact and working.

This allows upgrades to be made more easily and is the mark of a mature system. Where possible WHMCS should be adding hooks to remove the need to modify core code, of course, and I know that's being done; but child themes takes this one step further.

Child Themes quick overview from WP Codex: http://codex.wordpress.org/Child_Themes

Comments (3)

photo
1

this is already possible with custom themes.

all you need to do is register a smarty output filter in a hooks file which checks if the current template has the required file, if not it fetches the same file from the default theme.

its something im planning on doing for some future themes, but dont really think its needed as part of the core. you also then need to make sure the template you create still has the needed css/js that the default template use.

what i do think is needed is a template developers coding practices page as some of the themes i see are terribly written and interfear with changes made my addon modules.

photo
2

Ah then you've completely missed the point! While this may be possible (of course it would be possible technically!) we need an official and documented technique for implementation so everyone can do the same thing.

Then, when underlying core theme code changes, there are less files to change or maintain. WordPress does this beautifully and it's become extremely useful.

I understand you might want to do this just for your themes, but what i'm requesting here is some thought and documentation into a generic framework for keeping theme updates simple that could be used in core themes as well as original themes. As you say, it's not actually a huge amount of work and perhaps someone like yourself might want to submit a solution to WHMCS for their consideration.

photo
1

brianoz wrote:

Ah then you've completely missed the point! While this may be possible (of course it would be possible technically!) we need an official and documented technique for implementation so everyone can do the same thing.

Then, when underlying core theme code changes, there are less files to change or maintain. WordPress does this beautifully and it's become extremely useful.

I understand you might want to do this just for your themes, but what i'm requesting here is some thought and documentation into a generic framework for keeping theme updates simple that could be used in core themes as well as original themes. As you say, it's not actually a huge amount of work and perhaps someone like yourself might want to submit a solution to WHMCS for their consideration.

I completely agree.