Child theme possible?

Posted in: Newspaper
Post count: 1

Hi,

First of all thanks for a great theme. We have run into a slight issue starting our development though… We would like to use a child theme under Newspaper to retain the ability to upgrade the parent theme as new versions come out. We noticed you provide a child theme template to make this easier. However it seems much of the code in functions.php and elsewhere is not wrapped in pluggable functions – if(function_exists(…)) – which would enable us to override the entire function, and also get_template_directory() is used extensively instead of get_stylesheet_directory() which would check the child theme directory structure for a file before reverting to the parent theme.

It seems like this makes it very difficult (impossible?) to use a child theme effectively. Is this correct? Or have we missed something? Any help would be much appreciated.

Cheers,

J.R.

  • This topic was modified 11 years by JRodwell.
Post count: 9544

I think some things can’t go into the child theme due to the changes that come up with sliders, visual composer, and mega-menu kinds of things.

In our case we just hack the main templates; keep a cheat sheet, and then skip theme version upgrades to every other one.

Post count: 388

I’ve run into this too. I create a similar function named child_… and have been lucky enough that all references to the functions are in child-editable files, so I just make them use child_… instead.

In child_… I usually just catch the special case I have in mind and then pass everything on to the parent function again, to prevent having so many revisions in the child theme that it not only survives updates but is impervious to them. :p

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.