• Hey guys, so I tend to heavily edit themes to my needs whether it’s stylesheets, function additions or actually getting into the core files of themes and since some of the deep files aren’t child-theme compatible I’m curious how you guys handle customizing theme(s) that only have basic child-theme customizations (i.e. the loop stuff really) and still being able to easily update the theme without having to re-do a ton of work?

    Do most of you guys customize and then wait for major release updates and then worry about having to do touch-ups or?

    I suppose I should add, I don’t mean adding new functions, but rather changing existing functions. I know I could just change it in the parent theme but obviously that gets overwritten when you update the theme.

Viewing 1 replies (of 1 total)
  • If the theme author didn’t make a function conditional, there isn’t always a whole lot that can be done. If the function is hooked into an action or filter via add_action or add_filter, you can unhook the parent theme’s functions using remove_action or remove_filter and then substitute your child theme’s functions instead. Another option is to make a copy of header.php or whatever PHP file calls the non-conditional function into your child theme and replace the call to the parent theme’s non-conditional function with a function defined by your child theme.

Viewing 1 replies (of 1 total)

The topic ‘Child-theme/customizing a non-conditional function'ed theme’ is closed to new replies.